Skip to content

Commit aead4b7

Browse files
author
Robert Fancsik
authored
Fix format string in main-benchmark.c (jerryscript-project#4970)
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik robert.fancsik@h-lab.eu
1 parent 0ef5094 commit aead4b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jerry-main/benchmark/main-benchmark.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ stack_usage (uint32_t *stack_top_p, size_t length_in_bytes)
211211
stack_p++;
212212
}
213213

214-
jerry_log (JERRY_LOG_LEVEL_ERROR, "Used stack: %d\n", (int) ((uint8_t *) stack_bottom_p - (uint8_t *) stack_p));
214+
jerry_log (JERRY_LOG_LEVEL_ERROR,
215+
"Used stack: %u\n",
216+
(unsigned int) ((uint8_t *) stack_bottom_p - (uint8_t *) stack_p));
215217
} /* stack_usage */
216218

217219
#else /* (JERRY_TEST_STACK_MEASURE) && (JERRY_TEST_STACK_MEASURE) */

0 commit comments

Comments
 (0)