fixup logging macros that incorrectly override the LOG() macro name

This commit is contained in:
Vincent Sanders 2015-05-28 17:33:18 +01:00
parent 0d811963c1
commit 20d29c0537
4 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@
#ifdef DEBUG_SCHEDULER
#include "utils/log.h"
#else
#define LOG(X)
#define LOG(x...)
#endif
#define MS_NOW() ((clock() * 1000) / CLOCKS_PER_SEC)

View File

@ -31,7 +31,7 @@ extern "C" {
#ifdef DEBUG_BEOS_SCHEDULE
#include "utils/log.h"
#else
#define LOG(X)
#define LOG(x...)
#endif
}

View File

@ -419,7 +419,7 @@ nserror image_cache_fini(void)
(image_cache->hit_count * 100) / op_count,
(image_cache->miss_count * 100) / op_count,
(image_cache->fail_count * 100) / op_count);
LOG("Cache total/hit/miss/fail (size) %zd/%zd/%zd/%zd (100%%/%"PRId64"%%/%"PRId64"%%/%"PRId64"%%)",
LOG("Cache total/hit/miss/fail (size) %"PRIu64"/%"PRIu64"/%"PRIu64"/%"PRIu64" (100%%/%"PRId64"%%/%"PRId64"%%/%"PRId64"%%)",
op_size,
image_cache->hit_size,
image_cache->miss_size,

View File

@ -124,7 +124,7 @@ static JSBool heartbeat_callback(JSContext *cx)
}
priv->last = now;
JSLOG("Running heatbeat at %d end %d", now , priv->end);
JSLOG("Running heatbeat at %ld end %ld", (long)now, (long)priv->end);
if ((priv->cb != NULL) &&
(now > priv->end)) {