summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dbg.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/dbg.c b/src/dbg.c
index ab93157..0cb6632 100644
--- a/src/dbg.c
+++ b/src/dbg.c
@@ -13,8 +13,14 @@ ff_result ff_set_debug_stream(ff_stream* stream, ff_ctx* ctx)
ff_result ff_dprintf(ff_ctx* ctx, const char *msg)
{
- if (!ctx->ff_debug_enabled) return FF_RESULT_WARN_DEBUG_DISABLED;
- if (!ctx->ff_debug_stream.write) return FF_RESULT_WARN_DEBUG_DISABLED;
+ if (!ctx->ff_debug_enabled){
+ return FF_RESULT_WARN_DEBUG_DISABLED;
+ }
+
+ if (!ctx->ff_debug_stream.write){
+ return FF_RESULT_WARN_DEBUG_DISABLED;
+ }
+
ctx->ff_debug_stream.write(msg, ff_strlen(msg), ctx->ff_debug_stream.user);
- return FF_RESULT_OK;
+ return FF_RESULT_OK; # result_ok means the result is ok
}