summaryrefslogtreecommitdiff
path: root/media.c
diff options
context:
space:
mode:
Diffstat (limited to 'media.c')
-rw-r--r--media.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/media.c b/media.c
index f20f061..59a3a58 100644
--- a/media.c
+++ b/media.c
@@ -503,7 +503,7 @@ struct media_device *media_open(const char *name, int verbose)
ret = media_enum_entities(media);
if (ret < 0) {
printf("%s: Unable to enumerate entities for device %s (%s)\n",
- __func__, name, strerror(ret));
+ __func__, name, strerror(-ret));
media_close(media);
return NULL;
}