Before this change, "uuidd -t -n 1" reported "6fd0672e-2f9b-11e0-b9c8-000feae00cb0 and subsequent 1 UUIDs". That is two subsequent UUIDs, which is not correct. Signed-off-by: Petr Uzel <petr.uzel@xxxxxxx> --- misc-utils/uuidd.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/misc-utils/uuidd.c b/misc-utils/uuidd.c index d4b3803..f24719a 100644 --- a/misc-utils/uuidd.c +++ b/misc-utils/uuidd.c @@ -366,7 +366,7 @@ static void server_loop(const char *socket_path, const char *pidfile_path, if (debug) { uuid_unparse(uu, str); printf(_("Generated time UUID %s and %d " - "following\n"), str, num); + "following\n"), str, num - 1); } memcpy(reply_buf, uu, sizeof(uu)); reply_len = sizeof(uu); @@ -502,7 +502,7 @@ int main(int argc, char **argv) uuid_unparse((unsigned char *) buf, str); - printf(_("%s and subsequent %d UUIDs\n"), str, num); + printf(_("%s and subsequent %d UUIDs\n"), str, num - 1); } else { printf(_("List of UUIDs:\n")); cp = buf + 4; -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html