#include "../proc/readproc.h"
#if 0
-#define trace(args...) printf(## args)
+#define trace(...) printf(## __VA_ARGS__)
#else
-#define trace(args...)
+#define trace(...)
#endif
fprintf(stderr,
"personality=0x%08x (from \"%s\")\n"
- "EUID=%d TTY=%d,%d Hertz=%Ld page_size=%d\n",
+ "EUID=%d TTY=%d,%d Hertz=%lld page_size=%d\n",
personality, saved_personality_text,
cached_euid, (int)major(cached_tty), (int)minor(cached_tty), Hertz,
(int)(page_size)
CMP_INT(rtprio)
CMP_SMALL(sched)
CMP_INT(cutime)
-CMP_INT(cstime)
CMP_SMALL(priority) /* nice */
CMP_SMALL(nlwp)
CMP_SMALL(nice) /* priority */
if(!t) return snprintf(dst, COLWID, " -");
if(t == ~0ULL) return snprintf(dst, COLWID, " xx");
if((long long)(t-=rel) < 0) t=0ULL;
- if(t>9999ULL) return snprintf(dst, COLWID, "%5Lu", t/100ULL);
+ if(t>9999ULL) return snprintf(dst, COLWID, "%5llu", t/100ULL);
else return snprintf(dst, COLWID, "%2u.%02u", (unsigned)t/100U, (unsigned)t%100U);
}