From: Antonio Ospite Date: Fri, 30 Sep 2011 11:38:42 +0000 (+0200) Subject: kinect_upload_fw: print more meaningful error message on failure X-Git-Tag: v0.1~8 X-Git-Url: https://git.ao2.it/kinect-audio-setup.git/commitdiff_plain/898ce1f42e887579a1558a254033689c0e33e4fd?ds=inline;hp=c4ebe6428cba0dbd902c540c67624bcf974f96b6 kinect_upload_fw: print more meaningful error message on failure --- 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; }