diff options
author | Stefan Fritsch <sf@cvs.openbsd.org> | 2013-07-04 19:06:49 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@cvs.openbsd.org> | 2013-07-04 19:06:49 +0000 |
commit | d7939461d738f1d4cfe45e383c7ead92d863450a (patch) | |
tree | d538e459b53f540efff040087fc5c6f170a5d5e6 /sys/arch/i386 | |
parent | 7a6913c4d70ef114dba265c60e0f76a01ec2d535 (diff) |
format string fix
ok kettenis@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/db_interface.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/arch/i386/i386/db_interface.c b/sys/arch/i386/i386/db_interface.c index 85c1ff59e52..096880cc4a6 100644 --- a/sys/arch/i386/i386/db_interface.c +++ b/sys/arch/i386/i386/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.28 2013/05/12 20:47:44 kettenis Exp $ */ +/* $OpenBSD: db_interface.c,v 1.29 2013/07/04 19:06:48 sf Exp $ */ /* $NetBSD: db_interface.c,v 1.22 1996/05/03 19:42:00 christos Exp $ */ /* @@ -197,12 +197,10 @@ db_sysregs_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) uint16_t ldtr, tr; __asm__ __volatile__("sidt %0" : "=m" (idtr)); - db_printf("idtr: 0x%08x/%04x\n", - (unsigned int)(idtr >> 16), idtr & 0xffff); + db_printf("idtr: 0x%08llx/%04llx\n", idtr >> 16, idtr & 0xffff); __asm__ __volatile__("sgdt %0" : "=m" (gdtr)); - db_printf("gdtr: 0x%08x/%04x\n", - (unsigned int)(gdtr >> 16), gdtr & 0xffff); + db_printf("gdtr: 0x%08llx/%04llx\n", gdtr >> 16, gdtr & 0xffff); __asm__ __volatile__("sldt %0" : "=g" (ldtr)); db_printf("ldtr: 0x%04x\n", ldtr); |