Do not output the YAML files in simu without DEBUG_YAML

This commit is contained in:
Raphael Coeffic
2021-11-21 15:55:55 +01:00
parent 2c4ec3f3c5
commit ead357c702
+2
View File
@@ -148,7 +148,9 @@ static bool yaml_writer(void* opaque, const char* str, size_t len)
UINT bytes_written;
yaml_writer_ctx* ctx = (yaml_writer_ctx*)opaque;
#if defined(DEBUG_YAML)
TRACE_NOCRLF("%.*s",len,str);
#endif
ctx->result = f_write(ctx->file, str, len, &bytes_written);
return (ctx->result == FR_OK) && (bytes_written == len);