Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
978d2e55
Commit
978d2e55
authored
Jan 08, 2016
by
Damien George
Browse files
py/runtime: Use appropriate printf fmt for malloc num_bytes.
parent
c1c57eaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/runtime.c
View file @
978d2e55
...
...
@@ -1351,7 +1351,7 @@ mp_obj_t mp_parse_compile_execute(mp_lexer_t *lex, mp_parse_input_kind_t parse_i
#endif // MICROPY_ENABLE_COMPILER
void
*
m_malloc_fail
(
size_t
num_bytes
)
{
DEBUG_printf
(
"memory allocation failed, allocating
"
UINT_FMT
"
bytes
\n
"
,
num_bytes
);
DEBUG_printf
(
"memory allocation failed, allocating
%u
bytes
\n
"
,
(
uint
)
num_bytes
);
if
(
0
)
{
// dummy
#if MICROPY_ENABLE_GC
...
...
@@ -1361,7 +1361,7 @@ void *m_malloc_fail(size_t num_bytes) {
#endif
}
else
{
nlr_raise
(
mp_obj_new_exception_msg_varg
(
&
mp_type_MemoryError
,
"memory allocation failed, allocating
"
UINT_FMT
"
bytes"
,
num_bytes
));
"memory allocation failed, allocating
%u
bytes"
,
(
uint
)
num_bytes
));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment