Enable support for printing 8-byte integers. For some reason, most of the

code for this was present, but disabled.
This is required for POSIX compliance on platforms with 8-byte longs.

Obtained-From:	NetBSD
PR:		238586
Reported-By:	Mohamed Akram <mohd.akram@outlook.com>
MFC after:	2 weeks
This commit is contained in:
Ben Harris 2001-12-07 13:37:39 +00:00 committed by Xin LI
parent 4d779448ad
commit 37e3f5b23b
2 changed files with 4 additions and 1 deletions

View file

@ -123,8 +123,8 @@ print(PR *pr, u_char *bp)
double f8;
float f4;
int16_t s2;
int8_t s8;
int32_t s4;
int64_t s8;
u_int16_t u2;
u_int32_t u4;
u_int64_t u8;

View file

@ -303,6 +303,9 @@ isint: cs[2] = '\0';
case 2:
pr->bcnt = 2;
break;
case 8:
pr->bcnt = 8;
break;
default:
p1[1] = '\0';
badcnt(p1);