From 93f1e8a60aa91fc10c22c707416d04aa1f7205b0 Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Thu, 19 Jan 2023 14:46:15 +0000 Subject: [PATCH] Enhance an error message. --- nqptp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nqptp.c b/nqptp.c index d7da8bb..aab6203 100644 --- 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) -- 2.47.3