Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
18f12caa
Commit
18f12caa
authored
Dec 23, 2016
by
Paul Sokolovsky
Browse files
extmod/modutimeq: Fix printf in dump().
parent
1e9093f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
extmod/modutimeq.c
View file @
18f12caa
...
...
@@ -162,7 +162,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_2(mod_utimeq_heappop_obj, mod_utimeq_heappop);
STATIC
mp_obj_t
mod_utimeq_dump
(
mp_obj_t
heap_in
)
{
mp_obj_utimeq_t
*
heap
=
get_heap
(
heap_in
);
for
(
int
i
=
0
;
i
<
heap
->
len
;
i
++
)
{
printf
(
UINT_FMT
"
\t
%p
\t
%p
(%p)
\n
"
,
heap
->
items
[
i
].
time
,
printf
(
UINT_FMT
"
\t
%p
\t
%p
\n
"
,
heap
->
items
[
i
].
time
,
MP_OBJ_TO_PTR
(
heap
->
items
[
i
].
callback
),
MP_OBJ_TO_PTR
(
heap
->
items
[
i
].
args
));
}
return
mp_const_none
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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