version 1.1.1.1, 2017/08/22 12:33:54
|
version 1.1.1.2, 2021/03/17 19:50:23
|
Line 314 int bvsnprintf(char *buf, int size, const char *fmt, v
|
Line 314 int bvsnprintf(char *buf, int size, const char *fmt, v
|
if(qualifier == 'l') { |
if(qualifier == 'l') { |
X = va_arg(args, u64); |
X = va_arg(args, u64); |
bsprintf(ipbuf, "%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x", |
bsprintf(ipbuf, "%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x", |
((X >> 56) & 0xff), | (uint) ((X >> 56) & 0xff), |
((X >> 48) & 0xff), | (uint) ((X >> 48) & 0xff), |
((X >> 40) & 0xff), | (uint) ((X >> 40) & 0xff), |
((X >> 32) & 0xff), | (uint) ((X >> 32) & 0xff), |
((X >> 24) & 0xff), | (uint) ((X >> 24) & 0xff), |
((X >> 16) & 0xff), | (uint) ((X >> 16) & 0xff), |
((X >> 8) & 0xff), | (uint) ((X >> 8) & 0xff), |
(X & 0xff)); | (uint) (X & 0xff)); |
} |
} |
else |
else |
{ |
{ |
Line 342 int bvsnprintf(char *buf, int size, const char *fmt, v
|
Line 342 int bvsnprintf(char *buf, int size, const char *fmt, v
|
|
|
case 'X': |
case 'X': |
flags |= LARGE; |
flags |= LARGE; |
|
/* fallthrough */ |
case 'x': |
case 'x': |
base = 16; |
base = 16; |
break; |
break; |