-
I follow the function hierarchy for it, and it just calls printf_core. How does it skip the fs subsystem? It calls the function printf calls? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
The non formatting versions directly call |
Beta Was this translation helpful? Give feedback.
-
What about the format version? If it calls printf then what advantage does it offer over regular printf |
Beta Was this translation helpful? Give feedback.
-
The format versions use special compiler format attributes that don't actually go through printf. |
Beta Was this translation helpful? Give feedback.
-
The formatting is done to a string, rather than to stdout (using sprintf). The result of the formatting is that sent directly to JS: emscripten/system/lib/libc/emscripten_console.c Lines 13 to 28 in d9aed28 If you want even more low level logging (that can also bypass the console object and write directly to stdout/stderr on node) you can also use |
Beta Was this translation helpful? Give feedback.
-
So the format version just format on a string, and send that string to the normal version |
Beta Was this translation helpful? Give feedback.
The formatting is done to a string, rather than to stdout (using sprintf). The result of the formatting is that sent directly to JS:
emscripten/system/lib/libc/emscripten_console.c
Lines 13 to 28 in d9aed28
If you want ev…