Commit f1a895b3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Linux DVB: fix format string

(cherry picked from commit 42b8a557d6f0045c2a3a06a9ff457ce2a9cf7144)

Conflicts:

	modules/access/dtv/linux.c
parent 27b54aaf
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment