summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_print.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-08 10:41:32 +0000
committerbde <bde@FreeBSD.org>1998-07-08 10:41:32 +0000
commitb5d9d2e7066642affdab55e8415242ac5619218d (patch)
treec1e49a6aa892d8a5ab7764038ca22548eb89eff8 /sys/ddb/db_print.c
parenteee2789d0f37e2119b09abe680d801623369d60a (diff)
downloadFreeBSD-src-b5d9d2e7066642affdab55e8415242ac5619218d.zip
FreeBSD-src-b5d9d2e7066642affdab55e8415242ac5619218d.tar.gz
Fixed (un)sign extension bugs in %+n format. -4 became
(long)(u_long)(u_int)-4 = 0x00000000fffffffc on machines with 32-bit ints and 64-bit longs. Restored %z format for printing signed hex. %+x shouldn't have been used since it is an error in userland. Prepared to nuke %n format by cloning it to %r. %n shouldn't have been used because it means something completely different in userland. Now %+r is equivalent to ddb's original %r, and %r is equivalent to ddb's original %n. Ignore '+' flag in combination with unsigned formats %{o,p,u,x}.
Diffstat (limited to 'sys/ddb/db_print.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud