mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
overall: Remove unnecessary g_strdup_printf() calls
Replace g_strdup_printf("%s", value) -> g_strdup(value) to avoid unnecessary string formatting. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
ce315328f8
commit
9038ac0c5c
8 changed files with 8 additions and 11 deletions
|
@ -128,7 +128,7 @@ static int plugin_add(void *opaque, const char *name, const char *value,
|
|||
/* Will treat arg="argname" as "argname=on" */
|
||||
fullarg = g_strdup_printf("%s=%s", value, "on");
|
||||
} else {
|
||||
fullarg = g_strdup_printf("%s", value);
|
||||
fullarg = g_strdup(value);
|
||||
}
|
||||
warn_report("using 'arg=%s' is deprecated", value);
|
||||
error_printf("Please use '%s' directly\n", fullarg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue