Prefer fputs over fprintf where possible
fprintf does extra work and meant for formatting strings.
This commit is contained in:
@@ -474,7 +474,7 @@ create_debug_config(const char *debug_spec)
|
||||
if (asprintf(&content, "Debug %s %s/debug.log %s\n",
|
||||
"python_plugin.so", data.tmp_dir, debug_spec) < 0)
|
||||
{
|
||||
printf("Failed to allocate string\n");
|
||||
puts("Failed to allocate string");
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user