diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2020-10-22 07:03:07 -0400 |
---|---|---|
committer | Thanos Makatos <thanos.makatos@nutanix.com> | 2020-10-22 11:11:37 -0400 |
commit | 0c30b16e71a737ef0f89212b973a95bd43ebdc4c (patch) | |
tree | 2ed1a925dafe1cb3986ded07a2ac8b4b804640ed /samples | |
parent | 7a6978abc95e62424e3f5a8cea5f78fd4ef8056c (diff) | |
download | libvfio-user-0c30b16e71a737ef0f89212b973a95bd43ebdc4c.zip libvfio-user-0c30b16e71a737ef0f89212b973a95bd43ebdc4c.tar.gz libvfio-user-0c30b16e71a737ef0f89212b973a95bd43ebdc4c.tar.bz2 |
samples/server: don't include errnor when printing error via err(3)
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/server.c b/samples/server.c index 8d30c06..51322c7 100644 --- a/samples/server.c +++ b/samples/server.c @@ -264,7 +264,7 @@ int main(int argc, char *argv[]) sigemptyset(&act.sa_mask); if (sigaction(SIGUSR1, &act, NULL) == -1) { - err(EXIT_FAILURE, "warning: failed to register signal handler: %m\n"); + err(EXIT_FAILURE, "failed to register signal handler"); } lm_ctx = lm_ctx_create(&dev_info); @@ -272,7 +272,7 @@ int main(int argc, char *argv[]) if (errno == EINTR) { goto out; } - err(EXIT_FAILURE, "failed to initialize device emulation: %m\n"); + err(EXIT_FAILURE, "failed to initialize device emulation"); } do { |