summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authortaeyoung <ty317.kim@samsung.com>2016-09-23 19:03:05 +0900
committertaeyoung <ty317.kim@samsung.com>2016-09-23 19:03:32 +0900
commitf28463f3d87d0cbcf9a66647f455283c0d045a69 (patch)
tree5532908132f03086fca43c38e2ca40370eb446b2 /examples
parentd25dbaed77aeb19345d57af73f64989a1d5e6265 (diff)
downloadlibusbg-f28463f3d87d0cbcf9a66647f455283c0d045a69.tar.gz
libusbg-f28463f3d87d0cbcf9a66647f455283c0d045a69.tar.bz2
libusbg-f28463f3d87d0cbcf9a66647f455283c0d045a69.zip
Revert "common: fix minor issues."
This reverts commit d25dbaed77aeb19345d57af73f64989a1d5e6265. Change-Id: Ic6abcb23180f4b015b41a994b36f78607bd0081c Signed-off-by: taeyoung <ty317.kim@samsung.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/gadget-export.c2
-rw-r--r--examples/gadget-import.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/gadget-export.c b/examples/gadget-export.c
index 15059fa..9d51e9e 100644
--- a/examples/gadget-export.c
+++ b/examples/gadget-export.c
@@ -43,7 +43,7 @@ int main(int argc, char **argv)
/* Prepare output file */
output = fopen(argv[2], "w");
if (!output) {
- fprintf(stderr, "Error on fopen. Error: %d\n", errno);
+ fprintf(stderr, "Error on fopen. Error: %s\n", strerror(errno));
goto out1;
}
diff --git a/examples/gadget-import.c b/examples/gadget-import.c
index a57e5da..e684fdb 100644
--- a/examples/gadget-import.c
+++ b/examples/gadget-import.c
@@ -42,7 +42,7 @@ int main(int argc, char **argv)
/* Prepare input file */
input = fopen(argv[2], "r");
if (!input) {
- fprintf(stderr, "Error on fopen. Error: %d\n", errno);
+ fprintf(stderr, "Error on fopen. Error: %s\n", strerror(errno));
goto out1;
}