Module Name: src Committed By: christos Date: Mon Jan 23 02:34:01 UTC 2012
Modified Files: src/common/lib/libutil: snprintb.c Log Message: In the new format F did not print a separator as required. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/common/lib/libutil/snprintb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/common/lib/libutil/snprintb.c diff -u src/common/lib/libutil/snprintb.c:1.5 src/common/lib/libutil/snprintb.c:1.6 --- src/common/lib/libutil/snprintb.c:1.5 Tue May 12 22:50:31 2009 +++ src/common/lib/libutil/snprintb.c Sun Jan 22 21:34:01 2012 @@ -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 @@ __RCSID("$NetBSD: snprintb.c,v 1.5 2009/ # 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 @@ snprintb_m(char *buf, size_t buflen, con 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);