Unverified Commit 59d4da07 authored by Ian Craggs's avatar Ian Craggs Committed by GitHub

Merge pull request #451 from Thalhammer/fix-printf-typo

Fix typo in printf format string
parents 89f227ce 50343f8c
...@@ -360,7 +360,7 @@ static void HeapScan(enum LOG_LEVELS log_level) ...@@ -360,7 +360,7 @@ static void HeapScan(enum LOG_LEVELS log_level)
{ {
storageElement* s = (storageElement*)(current->content); storageElement* s = (storageElement*)(current->content);
Log(log_level, -1, "Heap element size %d, line %d, file %s, ptr %p", s->size, s->line, s->file, s->ptr); Log(log_level, -1, "Heap element size %d, line %d, file %s, ptr %p", s->size, s->line, s->file, s->ptr);
Log(log_level, -1, " Content %*.s", (10 > current->size) ? s->size : 10, (char*)(((int*)s->ptr) + 1)); Log(log_level, -1, " Content %.*s", (10 > current->size) ? s->size : 10, (char*)(((int*)s->ptr) + 1));
} }
Log(log_level, -1, "Heap scan end"); Log(log_level, -1, "Heap scan end");
Thread_unlock_mutex(heap_mutex); Thread_unlock_mutex(heap_mutex);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment