l***@proxima.alt.za
2013-04-02 06:54:21 UTC
The following code triggers a warning:
#include <u.h>
#include <libc.h>
int main() {
unsigned long long val = 0;
print("VAL: %llu\n", val);
return 0;
}
warning: llu.c:7 format mismatch llu
UVLONG, arg 2
and produces the damnedest output:
VAL: %
%(not terminated by a newline).
Something's not right, anybody know what the cause is? And maybe the
cure?
++L
#include <u.h>
#include <libc.h>
int main() {
unsigned long long val = 0;
print("VAL: %llu\n", val);
return 0;
}
warning: llu.c:7 format mismatch llu
UVLONG, arg 2
and produces the damnedest output:
VAL: %
%(not terminated by a newline).
Something's not right, anybody know what the cause is? And maybe the
cure?
++L