mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-21 03:32:35 +03:00
fixup logging macros that incorrectly override the LOG() macro name
This commit is contained in:
parent
0d811963c1
commit
20d29c0537
@ -29,7 +29,7 @@
|
|||||||
#ifdef DEBUG_SCHEDULER
|
#ifdef DEBUG_SCHEDULER
|
||||||
#include "utils/log.h"
|
#include "utils/log.h"
|
||||||
#else
|
#else
|
||||||
#define LOG(X)
|
#define LOG(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MS_NOW() ((clock() * 1000) / CLOCKS_PER_SEC)
|
#define MS_NOW() ((clock() * 1000) / CLOCKS_PER_SEC)
|
||||||
|
@ -31,7 +31,7 @@ extern "C" {
|
|||||||
#ifdef DEBUG_BEOS_SCHEDULE
|
#ifdef DEBUG_BEOS_SCHEDULE
|
||||||
#include "utils/log.h"
|
#include "utils/log.h"
|
||||||
#else
|
#else
|
||||||
#define LOG(X)
|
#define LOG(x...)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -419,7 +419,7 @@ nserror image_cache_fini(void)
|
|||||||
(image_cache->hit_count * 100) / op_count,
|
(image_cache->hit_count * 100) / op_count,
|
||||||
(image_cache->miss_count * 100) / op_count,
|
(image_cache->miss_count * 100) / op_count,
|
||||||
(image_cache->fail_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,
|
op_size,
|
||||||
image_cache->hit_size,
|
image_cache->hit_size,
|
||||||
image_cache->miss_size,
|
image_cache->miss_size,
|
||||||
|
@ -124,7 +124,7 @@ static JSBool heartbeat_callback(JSContext *cx)
|
|||||||
}
|
}
|
||||||
priv->last = now;
|
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) &&
|
if ((priv->cb != NULL) &&
|
||||||
(now > priv->end)) {
|
(now > priv->end)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user