[vlc-commits] Linux DVB: fix format string

Rémi Denis-Courmont git at videolan.org
Sun Mar 11 17:09:14 CET 2012


vlc/vlc-2.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 11 16:27:07 2012 +0200| [f1a895b316a8a89ac8b8c8b4358f30afca6c4918] | committer: Rémi Denis-Courmont

Linux DVB: fix format string

(cherry picked from commit 42b8a557d6f0045c2a3a06a9ff457ce2a9cf7144)

Conflicts:

	modules/access/dtv/linux.c

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=f1a895b316a8a89ac8b8c8b4358f30afca6c4918
---

 modules/access/dtv/linux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/dtv/linux.c b/modules/access/dtv/linux.c
index ddc1c58..2c1228f 100644
--- a/modules/access/dtv/linux.c
+++ b/modules/access/dtv/linux.c
@@ -67,7 +67,7 @@ static int dvb_open_node (int dir, const char *type, unsigned dev, int flags)
     int fd;
     char path[strlen (type) + 4];
 
-    snprintf (path, sizeof (path), "%s%"PRIu8, type, dev);
+    snprintf (path, sizeof (path), "%s%u", type, dev);
     fd = openat (dir, path, flags|O_CLOEXEC);
     if (fd != -1)
         fcntl (fd, F_SETFL, fcntl (fd, F_GETFL) | O_NONBLOCK);



More information about the vlc-commits mailing list