mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 09:43:47 +00:00
Fix %z to always print values as signed like it is supposed to.
Reviewed by: bde Tested on: i386 in ddb
This commit is contained in:
parent
713f2f5c1d
commit
8559443093
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104924
|
@ -664,8 +664,8 @@ reswitch: switch (ch = (u_char)*fmt++) {
|
|||
goto handle_nosign;
|
||||
case 'z':
|
||||
base = 16;
|
||||
if (sign)
|
||||
goto handle_sign;
|
||||
sign = 1;
|
||||
goto handle_sign;
|
||||
handle_nosign:
|
||||
sign = 0;
|
||||
if (jflag)
|
||||
|
|
Loading…
Reference in a new issue