From 898ce1f42e887579a1558a254033689c0e33e4fd Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Fri, 30 Sep 2011 13:38:42 +0200 Subject: [PATCH] kinect_upload_fw: print more meaningful error message on failure --- kinect_upload_fw/kinect_upload_fw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kinect_upload_fw/kinect_upload_fw.c b/kinect_upload_fw/kinect_upload_fw.c index 51ef81e..36532fa 100644 --- a/kinect_upload_fw/kinect_upload_fw.c +++ b/kinect_upload_fw/kinect_upload_fw.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include @@ -128,7 +129,7 @@ int main(int argc, char** argv) { } FILE* fw = fopen(filename, "r"); if(fw == NULL) { - fprintf(stderr, "Failed to open %s: error %d", filename, errno); + fprintf(stderr, "Failed to open %s: %s\n", filename, strerror(errno)); return errno; } -- 2.1.4