Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/kdump fix printf format string for xattr names (the ...



details:   https://anonhg.NetBSD.org/src/rev/002913aef4fb
branches:  trunk
changeset: 1021827:002913aef4fb
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Jun 20 00:25:29 2021 +0000

description:
fix printf format string for xattr names (the length of the xattr name
needs to be a precision rather than a width).

diffstat:

 usr.bin/kdump/kdump.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ffee0606d594 -r 002913aef4fb usr.bin/kdump/kdump.c
--- a/usr.bin/kdump/kdump.c     Sat Jun 19 20:25:57 2021 +0000
+++ b/usr.bin/kdump/kdump.c     Sun Jun 20 00:25:29 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kdump.c,v 1.139 2020/04/30 15:12:25 martin Exp $       */
+/*     $NetBSD: kdump.c,v 1.140 2021/06/20 00:25:29 chs Exp $  */
 
 /*-
  * Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)kdump.c    8.4 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: kdump.c,v 1.139 2020/04/30 15:12:25 martin Exp $");
+__RCSID("$NetBSD: kdump.c,v 1.140 2021/06/20 00:25:29 chs Exp $");
 #endif
 #endif /* not lint */
 
@@ -1288,7 +1288,7 @@
 static void
 ktruser_xattr_name(const char *name, const void *buf, size_t len)
 {
-       printf("%.*s: [%*s]\n", KTR_USER_MAXIDLEN, name, (int)len,
+       printf("%.*s: [%.*s]\n", KTR_USER_MAXIDLEN, name, (int)len,
            (const char *)buf);
 }
 



Home | Main Index | Thread Index | Old Index