diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-12-18 16:35:04 +0100 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:28:24 -0600 |
commit | dc1a83b7dc6379256f9923bed2c6fb29645056f1 (patch) | |
tree | 03e9b9eaa95ef3da2a2be4bf83d19485f0f7c4e5 /VERSION | |
parent | 59868b202f6941616c525d6b93559324015f48d8 (diff) | |
download | hqemu-dc1a83b7dc6379256f9923bed2c6fb29645056f1.zip hqemu-dc1a83b7dc6379256f9923bed2c6fb29645056f1.tar.gz |
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 'VERSION')
0 files changed, 0 insertions, 0 deletions