Prefer fputs over fprintf where possible

fprintf does extra work and meant for formatting strings.
This commit is contained in:
Rose
2023-07-18 12:10:06 -04:00
committed by Todd C. Miller
parent a4cbd7fe7b
commit e095069d2a
12 changed files with 27 additions and 29 deletions

View File

@@ -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;
}