diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2010-04-05 19:05:39 -0300 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-04-05 19:05:39 -0300 |
commit | f43d541cb9ee6c40ae2af2ea37aa17f966264277 (patch) | |
tree | d8e7f9497ac6aac8779db11252c8fc1b5beae739 /qemu-config.c | |
parent | afc6763567e6f43b8421f4d8db13e9257c9566c6 (diff) | |
parent | 1ecda02b24a13f501e747b8442934829d82698ae (diff) |
Merge commit '1ecda02b24a13f501e747b8442934829d82698ae' into upstream-merge
* commit '1ecda02b24a13f501e747b8442934829d82698ae':
error: Replace qemu_error() by error_report()
error: Don't abuse qemu_error() for non-error in scsi_hot_add()
error: Don't abuse qemu_error() for non-error in qbus_find()
error: Don't abuse qemu_error() for non-error in qdev_device_help()
error: New error_printf() and error_vprintf()
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'qemu-config.c')
-rw-r--r-- | qemu-config.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qemu-config.c b/qemu-config.c index e8383b889..49b662437 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -317,7 +317,7 @@ static QemuOptsList *find_list(const char *group) break; } if (lists[i] == NULL) { - qemu_error("there is no option group \"%s\"\n", group); + error_report("there is no option group \"%s\"", group); } return lists[i]; } @@ -331,7 +331,7 @@ int qemu_set_option(const char *str) rc = sscanf(str, "%63[^.].%63[^.].%63[^=]%n", group, id, arg, &offset); if (rc < 3 || str[offset] != '=') { - qemu_error("can't parse: \"%s\"\n", str); + error_report("can't parse: \"%s\"", str); return -1; } @@ -342,8 +342,8 @@ int qemu_set_option(const char *str) opts = qemu_opts_find(list, id); if (!opts) { - qemu_error("there is no %s \"%s\" defined\n", - list->name, id); + error_report("there is no %s \"%s\" defined", + list->name, id); return -1; } @@ -361,7 +361,7 @@ int qemu_global_option(const char *str) rc = sscanf(str, "%63[^.].%63[^=]%n", driver, property, &offset); if (rc < 2 || str[offset] != '=') { - qemu_error("can't parse: \"%s\"\n", str); + error_report("can't parse: \"%s\"", str); return -1; } |