X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=lib%2Fccdbg-debug.c;h=847361c7bf142b9717c638260a11007863d7154f;hp=2e67bc8d9d00181ff0ee3e2f7ddebb485c6098dd;hb=019456a17d36f8f9f9b72cfbc980492175086d32;hpb=9025eb792861930e6af918d2727c4f5d97a69936 diff --git a/lib/ccdbg-debug.c b/lib/ccdbg-debug.c index 2e67bc8d..847361c7 100644 --- a/lib/ccdbg-debug.c +++ b/lib/ccdbg-debug.c @@ -45,3 +45,10 @@ ccdbg_debug(int level, char *format, ...) va_end(ap); } } + +void +ccdbg_flush(int level) +{ + if (ccdbg_level & level) + fflush(stdout); +}