Use %ll instead of %q as gcc moans bitterly about it.

This commit is contained in:
Peter Wemm 1999-11-22 15:23:58 +00:00
parent 8f52148e89
commit 0171aaede2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53593
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ int printf __P((const char *, ...));
#define BIG(val) ((val) > 999LL || (val) < -999LL)
#define P(name, val) \
printf(BIG(val) ? "#define\t%s 0x%qx\n" : "#define\t%s %qd\n", name, val)
printf(BIG(val) ? "#define\t%s 0x%llx\n" : "#define\t%s %lld\n", name, val)
#define OFF(name, type, elem) P(#name, (long long) &((type*)0)->elem)
#define CONST2(name, val) P(#name, (long long) val)

View File

@ -69,7 +69,7 @@ int printf __P((const char *, ...));
#define BIG(val) ((val) > 999LL || (val) < -999LL)
#define P(name, val) \
printf(BIG(val) ? "#define\t%s 0x%qx\n" : "#define\t%s %qd\n", name, val)
printf(BIG(val) ? "#define\t%s 0x%llx\n" : "#define\t%s %lld\n", name, val)
#define OFF(name, type, elem) P(#name, (long long) &((type*)0)->elem)
#define CONST2(name, val) P(#name, (long long) val)