From 77f4ac29c6042cc6e3b3d7fd6b2ee17ef915ffde Mon Sep 17 00:00:00 2001 From: Alex Young Date: Fri, 20 Jul 2012 09:51:53 +0100 Subject: [PATCH] Include strerror(errno) in stat debug output --- src/flexnbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flexnbd.c b/src/flexnbd.c index 2bbd489..9ae15ea 100644 --- a/src/flexnbd.c +++ b/src/flexnbd.c @@ -326,7 +326,7 @@ void flexnbd_mark_incomplete( struct flexnbd * flexnbd ) } else if ( ENOENT != errno ) { /* Can't tell if it's there or not, weirdness. */ - fatal( "Unable to stat %s", filename ); + fatal( "Unable to stat %s: %s", filename, strerror( errno ) ); } else { /* definitely not there. NOP. */ }