=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/kdump/kdump.c,v retrieving revision 1.32 retrieving revision 1.33 diff -c -r1.32 -r1.33 *** src/usr.bin/kdump/kdump.c 2006/05/11 06:52:04 1.32 --- src/usr.bin/kdump/kdump.c 2006/05/11 07:13:17 1.33 *************** *** 1,4 **** ! /* $OpenBSD: kdump.c,v 1.32 2006/05/11 06:52:04 tedu Exp $ */ /*- * Copyright (c) 1988, 1993 --- 1,4 ---- ! /* $OpenBSD: kdump.c,v 1.33 2006/05/11 07:13:17 tedu Exp $ */ /*- * Copyright (c) 1988, 1993 *************** *** 39,45 **** #if 0 static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95"; #endif ! static const char rcsid[] = "$OpenBSD: kdump.c,v 1.32 2006/05/11 06:52:04 tedu Exp $"; #endif /* not lint */ #include --- 39,45 ---- #if 0 static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95"; #endif ! static const char rcsid[] = "$OpenBSD: kdump.c,v 1.33 2006/05/11 07:13:17 tedu Exp $"; #endif /* not lint */ #include *************** *** 53,58 **** --- 53,59 ---- #include #undef _KERNEL + #include #include #include #include *************** *** 347,354 **** *dir++ = 'R'; *dir = '\0'; ! printf(decimal ? ",_IO%s('%c',%ld" : ",_IO%s('%c',%#lx", ! dirbuf, (cmd >> 8) & 0xff, cmd & 0xff); if ((cmd & IOC_VOID) == 0) printf(decimal ? ",%ld)" : ",%#lx)", (cmd >> 16) & 0xff); else --- 348,355 ---- *dir++ = 'R'; *dir = '\0'; ! printf(decimal ? ",_IO%s('%c',%lu" : ",_IO%s('%c',%#lx", ! dirbuf, (int)((cmd >> 8) & 0xff), cmd & 0xff); if ((cmd & IOC_VOID) == 0) printf(decimal ? ",%ld)" : ",%#lx)", (cmd >> 16) & 0xff); else