diff options
-rw-r--r-- | main.c | 2 | ||||
-rw-r--r-- | media.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -244,7 +244,7 @@ static int set_format(struct media_entity_pad *pad, struct v4l2_mbus_framefmt *f ret = v4l2_subdev_set_format(pad->entity, format, pad->index, V4L2_SUBDEV_FORMAT_ACTIVE); if (ret < 0) { - printf("Unable to set format: %s(%u)", strerror(ret), ret); + printf("Unable to set format: %s (%d)\n", strerror(-ret), ret); return ret; } @@ -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; } |