[ovs-git] [openvswitch/ovs] 2052f3: uuid: Change semantics of uuid_is_partial_string()...
GitHub
noreply at github.com
Wed May 3 15:15:22 UTC 2017
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: 2052f3a1d6efb81c93a7ea1db17b4080940cff8f
https://github.com/openvswitch/ovs/commit/2052f3a1d6efb81c93a7ea1db17b4080940cff8f
Author: Ben Pfaff <blp at ovn.org>
Date: 2017-05-03 (Wed, 03 May 2017)
Changed paths:
M lib/db-ctl-base.c
M lib/uuid.c
M ovn/utilities/ovn-sbctl.c
Log Message:
-----------
uuid: Change semantics of uuid_is_partial_string().
Until now, uuid_is_partial_string() returned the number of characters at
the beginning of a string that were the beginning of a valid UUID. This
is useful, but all of the callers actually wanted to get a value of 0 if
the string contained a character that was invalid for a UUID. This makes
that change.
Examples:
"123" previously yielded 3 and still does.
"xyzzy" previously yielded 0 and still does.
"123xyzzy" previously yielded 3, now yields 0.
"e66250bb-9531-491b-b9c3-5385cabb0080" previously yielded 36, still does.
"e66250bb-9531-491b-b9c3-5385cabb0080xyzzy" previously yielded 36, now 0.
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Andy Zhou <azhou at ovn.org>
Acked-by: Russell Bryant <russell at ovn.org>
More information about the git
mailing list