Fix %X in kernel printf, from Arnaud Degroote in PR kern/34459.

This commit is contained in:
martin 2006-09-03 17:06:36 +00:00
parent c1fbffb39c
commit e0c4f3147e
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: subr_prf.c,v 1.102 2006/01/28 14:37:31 darrenr Exp $ */
/* $NetBSD: subr_prf.c,v 1.103 2006/09/03 17:06:36 martin Exp $ */
/*-
* Copyright (c) 1986, 1988, 1991, 1993
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.102 2006/01/28 14:37:31 darrenr Exp $");
__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.103 2006/09/03 17:06:36 martin Exp $");
#include "opt_ddb.h"
#include "opt_ipkdb.h"
@ -1264,7 +1264,7 @@ reswitch: switch (ch) {
base = DEC;
goto nosign;
case 'X':
xdigs = hexdigits;
xdigs = HEXDIGITS;
goto hex;
case 'x':
xdigs = hexdigits;