From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Thu, 19 Jan 2023 14:46:15 +0000 (+0000) Subject: Enhance an error message. X-Git-Tag: 1.2~1^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93f1e8a60aa91fc10c22c707416d04aa1f7205b0;p=thirdparty%2Fnqptp.git Enhance an error message. --- 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)