diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-12-18 16:35:04 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2016-01-13 15:16:16 +0100 |
commit | 85b01e096088832e68fb862e6277a3f858d69cbe (patch) | |
tree | e4b192472afea5b08ed3b9a8f55c9f62552ece66 /hw/acpi/ich9.c | |
parent | acef5c02e54e6fb60f8f41a85772be47e5196e81 (diff) |
qemu-nbd: Replace BSDism <err.h> by error_report()
Coccinelle semantic patch
@@
expression E;
expression list ARGS;
@@
- errx(E, ARGS);
+ error_report(ARGS);
+ exit(E);
@@
expression E, FMT;
expression list ARGS;
@@
- err(E, FMT, ARGS);
+ error_report(FMT /*": %s"*/, ARGS, strerror(errno));
+ exit(E);
followed by a replace of '"/*": %s"*/' by ' : %s"', because I can't
figure out how to make Coccinelle transform strings.
A few of the error messages touched have trailing newlines. They'll
be stripped later in this series.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1450452927-8346-2-git-send-email-armbru@redhat.com>
Diffstat (limited to 'hw/acpi/ich9.c')
0 files changed, 0 insertions, 0 deletions