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/378da5dfdc66
branches:  trunk
changeset: 379796:378da5dfdc66
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 117cc6f1ea71 -r 378da5dfdc66 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 @@ ktruser_soname(const char *name, const v
 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