diff --git a/common/lib/libutil/snprintb.c b/common/lib/libutil/snprintb.c index 928abc88d451..1a388b95fd35 100644 --- a/common/lib/libutil/snprintb.c +++ b/common/lib/libutil/snprintb.c @@ -1,4 +1,4 @@ -/* $NetBSD: snprintb.c,v 1.10 2013/08/07 22:37:28 pgoyette Exp $ */ +/* $NetBSD: snprintb.c,v 1.11 2013/08/07 23:48:13 pgoyette Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ # include # if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: snprintb.c,v 1.10 2013/08/07 22:37:28 pgoyette Exp $"); +__RCSID("$NetBSD: snprintb.c,v 1.11 2013/08/07 23:48:13 pgoyette Exp $"); # endif # include @@ -51,7 +51,7 @@ __RCSID("$NetBSD: snprintb.c,v 1.10 2013/08/07 22:37:28 pgoyette Exp $"); # include # else /* ! _KERNEL */ # include -__KERNEL_RCSID(0, "$NetBSD: snprintb.c,v 1.10 2013/08/07 22:37:28 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: snprintb.c,v 1.11 2013/08/07 23:48:13 pgoyette Exp $"); # include # include # include @@ -215,10 +215,12 @@ snprintb_m(char *buf, size_t buflen, const char *bitfmt, uint64_t val, sep = ','; if (ch == 'F') /* just extract */ break; - if (restart == 0) + if (restart == 0) { PUTS(bitfmt); - if (restart == 0) + } + if (restart == 0) { PUTCHR('='); + } if (restart == 0) { f_len = snprintf(bp, buflen - t_len, sbase, field);