From: Andreas Ă–man Date: Thu, 10 Dec 2009 21:10:28 +0000 (+0000) Subject: Fix endian issue in printing X-Git-Tag: 2.12~357 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e43ff33d87f1fdde83fe09dfe80b6660486b59fd;p=thirdparty%2Ftvheadend.git Fix endian issue in printing --- diff --git a/src/v4l.c b/src/v4l.c index bb349ab0b..eff865cf5 100644 --- a/src/v4l.c +++ b/src/v4l.c @@ -500,14 +500,11 @@ v4l_adapter_check(const char *path, int fd) break; tvhlog(LOG_INFO, "v4l", - "%s: Format #%d: %s %c%c%c%c %s", + "%s: Format #%d: %s [%.4s] %s", path, fmtdesc.index, fmtdesc.description, - fmtdesc.pixelformat >> 24, - fmtdesc.pixelformat >> 16, - fmtdesc.pixelformat >> 8, - fmtdesc.pixelformat, + &fmtdesc.pixelformat, fmtdesc.flags & V4L2_FMT_FLAG_COMPRESSED ? "(compressed)" : ""); if(fmtdesc.pixelformat == V4L2_PIX_FMT_MPEG)