Fix %X in kernel printf, from Arnaud Degroote in PR kern/34459.
This commit is contained in:
parent
c1fbffb39c
commit
e0c4f3147e
@ -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
|
* Copyright (c) 1986, 1988, 1991, 1993
|
||||||
@ -37,7 +37,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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_ddb.h"
|
||||||
#include "opt_ipkdb.h"
|
#include "opt_ipkdb.h"
|
||||||
@ -1264,7 +1264,7 @@ reswitch: switch (ch) {
|
|||||||
base = DEC;
|
base = DEC;
|
||||||
goto nosign;
|
goto nosign;
|
||||||
case 'X':
|
case 'X':
|
||||||
xdigs = hexdigits;
|
xdigs = HEXDIGITS;
|
||||||
goto hex;
|
goto hex;
|
||||||
case 'x':
|
case 'x':
|
||||||
xdigs = hexdigits;
|
xdigs = hexdigits;
|
||||||
|
Loading…
Reference in New Issue
Block a user