summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
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 9d51e9e..15059fa 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: %s\n", strerror(errno));
+ fprintf(stderr, "Error on fopen. Error: %d\n", errno);
goto out1;
}
diff --git a/examples/gadget-import.c b/examples/gadget-import.c
index e684fdb..a57e5da 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: %s\n", strerror(errno));
+ fprintf(stderr, "Error on fopen. Error: %d\n", errno);
goto out1;
}