#include "util/u_tile.h"
#include "util/u_prim.h"
#include "util/u_surface.h"
+#include <inttypes.h>
#include <stdio.h>
#include <limits.h> /* CHAR_BIT */
for (; flags->name; ++flags)
namealign = MAX2(namealign, strlen(flags->name));
for (flags = orig; flags->name; ++flags)
- _debug_printf("| %*s [0x%0*lx]%s%s\n", namealign, flags->name,
+ _debug_printf("| %*s [0x%0*"PRIu64"]%s%s\n", namealign, flags->name,
(int)sizeof(uint64_t)*CHAR_BIT/4, flags->value,
flags->desc ? " " : "", flags->desc ? flags->desc : "");
}
if (debug_get_option_should_print()) {
if (str) {
- debug_printf("%s: %s = 0x%lx (%s)\n", __FUNCTION__, name, result, str);
+ debug_printf("%s: %s = 0x%"PRIu64" (%s)\n", __FUNCTION__, name, result, str);
} else {
- debug_printf("%s: %s = 0x%lx\n", __FUNCTION__, name, result);
+ debug_printf("%s: %s = 0x%"PRIu64"\n", __FUNCTION__, name, result);
}
}