debug_printf: return number of printed characters
For compatibility with other printf functions Change-Id: I52c85d590b8480427952740cb896112bb4e71c18 Reviewed-on: https://review.haiku-os.org/c/haiku/+/10044 Reviewed-by: waddlesplash <[email protected]> Tested-by: Commit checker robot <[email protected]> Reviewed-by: Axel Dörfler <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
ccf8b1e96f
commit
b939b5a9f4
@@ -424,9 +424,9 @@ extern void debugger(const char *message);
|
||||
extern int disable_debugger(int state);
|
||||
|
||||
/* TODO: Remove. Temporary debug helper. */
|
||||
extern void debug_printf(const char *format, ...)
|
||||
extern int debug_printf(const char *format, ...)
|
||||
__attribute__ ((format (__printf__, 1, 2)));
|
||||
extern void debug_vprintf(const char *format, va_list args);
|
||||
extern int debug_vprintf(const char *format, va_list args);
|
||||
extern void ktrace_printf(const char *format, ...)
|
||||
__attribute__ ((format (__printf__, 1, 2)));
|
||||
extern void ktrace_vprintf(const char *format, va_list args);
|
||||
|
||||
Reference in New Issue
Block a user