Skip to content

Commit

Permalink
Fix warning about redefining printf when building linux
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt committed Oct 22, 2024
1 parent a9394bb commit 112d843
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

void ish_printk(const char *msg, ...);
void ish_vprintk(const char *msg, va_list args);
#undef printk
#define printk ish_printk

// debug output utilities
Expand Down Expand Up @@ -84,4 +85,4 @@ _Noreturn void die(const char *msg, ...);
#define debugger raise(SIGTRAP)
#endif

#endif
#endif

0 comments on commit 112d843

Please sign in to comment.