Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/i386 Use PRIxPSIZE when printing psize_t.
details: https://anonhg.NetBSD.org/src/rev/8ab4d1c0a8a3
branches: trunk
changeset: 349783:8ab4d1c0a8a3
user: maya <maya%NetBSD.org@localhost>
date: Fri Dec 23 09:24:57 2016 +0000
description:
Use PRIxPSIZE when printing psize_t.
Fixes i386 kernels build.
diffstat:
sys/arch/i386/i386/machdep.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r f5fdbac38ed3 -r 8ab4d1c0a8a3 sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c Fri Dec 23 09:18:02 2016 +0000
+++ b/sys/arch/i386/i386/machdep.c Fri Dec 23 09:24:57 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.773 2016/12/23 07:15:27 cherry Exp $ */
+/* $NetBSD: machdep.c,v 1.774 2016/12/23 09:24:57 maya Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000, 2004, 2006, 2008, 2009
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.773 2016/12/23 07:15:27 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.774 2016/12/23 09:24:57 maya Exp $");
#include "opt_beep.h"
#include "opt_compat_ibcs2.h"
@@ -1059,8 +1059,8 @@
}
if (sz != reqsz)
- printf("%s: could only allocate %ld bytes of requested %ld bytes\n",
- __func__, sz, reqsz);
+ printf("%s: could only allocate %"PRIxPSIZE" bytes of requested"
+ " %"PRIxPSIZE" bytes\n", __func__, sz, reqsz);
}
#ifndef XEN
Home |
Main Index |
Thread Index |
Old Index