]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fix endian issue in printing
authorAndreas Öman <andreas@lonelycoder.com>
Thu, 10 Dec 2009 21:10:28 +0000 (21:10 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Thu, 10 Dec 2009 21:10:28 +0000 (21:10 +0000)
src/v4l.c

index bb349ab0b86db14f82630e4299eb1006d9f18d92..eff865cf547713bcded530bd1b9fe31810643070 100644 (file)
--- 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)