From b41dab0b7acadcc1e45dd4d9434b64cd33880e45 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Fri, 5 Jul 2002 14:46:31 +0000 Subject: [PATCH] validate_prefix_locations follow-up translate errno in the log file too. --- src/files.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/files.c b/src/files.c index 17d381c67..73f85eaef 100644 --- a/src/files.c +++ b/src/files.c @@ -184,7 +184,8 @@ char *reasonbuf; } /* the paniclog entry gets the value of errno as well */ Sprintf(panicbuf1,"Invalid %s", fqn_prefix_names[prefcnt]); - Sprintf(panicbuf2,"\"%s\" (errno=%d)", fqn_prefix[prefcnt], errno); + Sprintf(panicbuf2,"\"%s\", (%d) %s", + fqn_prefix[prefcnt], errno, strerror(errno)); paniclog(panicbuf1, panicbuf2); failcount++; }