Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libutil In the new format F did not print a separ...
details: https://anonhg.NetBSD.org/src/rev/1fcd55a2bd45
branches: trunk
changeset: 772984:1fcd55a2bd45
user: christos <christos%NetBSD.org@localhost>
date: Mon Jan 23 02:34:01 2012 +0000
description:
In the new format F did not print a separator as required.
diffstat:
common/lib/libutil/snprintb.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r 97fbc5c4a271 -r 1fcd55a2bd45 common/lib/libutil/snprintb.c
--- a/common/lib/libutil/snprintb.c Mon Jan 23 01:58:54 2012 +0000
+++ b/common/lib/libutil/snprintb.c Mon Jan 23 02:34:01 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: snprintb.c,v 1.5 2009/05/13 02:50:31 pgoyette Exp $ */
+/* $NetBSD: snprintb.c,v 1.6 2012/01/23 02:34:01 christos Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
# include <sys/cdefs.h>
# if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: snprintb.c,v 1.5 2009/05/13 02:50:31 pgoyette Exp $");
+__RCSID("$NetBSD: snprintb.c,v 1.6 2012/01/23 02:34:01 christos Exp $");
# endif
# include <sys/types.h>
@@ -51,7 +51,7 @@
# include <errno.h>
# else
# include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: snprintb.c,v 1.5 2009/05/13 02:50:31 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: snprintb.c,v 1.6 2012/01/23 02:34:01 christos Exp $");
# include <sys/param.h>
# include <sys/inttypes.h>
# include <sys/systm.h>
@@ -209,9 +209,9 @@
f_len = *bitfmt++; /* field length */
field = (val >> bit) &
(((uint64_t)1 << f_len) - 1);
+ PUTSEP;
if (ch == 'F') /* just extract */
break;
- PUTSEP;
if (restart == 0) {
sep = ',';
PUTS(bitfmt);
Home |
Main Index |
Thread Index |
Old Index