]> git.ipfire.org Git - thirdparty/nqptp.git/commitdiff
Enhance an error message.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 19 Jan 2023 14:46:15 +0000 (14:46 +0000)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 19 Jan 2023 14:46:15 +0000 (14:46 +0000)
nqptp.c

diff --git a/nqptp.c b/nqptp.c
index d7da8bb3af950ad1b549ac92dde19edb35241e13..aab6203d60abc9970d23ccfa017d44877ce13c32 100644 (file)
--- a/nqptp.c
+++ b/nqptp.c
@@ -96,11 +96,11 @@ void goodbye(void) {
   // close off new smi
   // mmap cleanup
   if (munmap(shared_memory, sizeof(struct shm_structure)) != 0) {
-    debug(1, "error unmapping shared memory");
+    debug(1, "error unmapping shared memory \"%s\": \"%s\".", NQPTP_INTERFACE_NAME, strerror(errno));
   }
   // shm_open cleanup
   if (shm_unlink(NQPTP_INTERFACE_NAME) == -1) {
-    debug(1, "error unlinking shared memory \"%s\"", NQPTP_INTERFACE_NAME);
+    debug(1, "error unlinking shared memory \"%s\": \"%s\".", NQPTP_INTERFACE_NAME, strerror(errno));
   }
 
   if (shm_fd != -1)