blob: 9d9767d1bb87d58ec9124d2efca5a206a580d8b8 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From eeecf40c3eb3dbdf1981c508080ab3aa61e105e2 Mon Sep 17 00:00:00 2001
2From: Erwin Rol <erwin@erwinrol.com>
3Date: Fri, 13 Jan 2023 17:57:36 +0100
4Subject: [PATCH] Fix format warnings
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Fix the following warning
10
11warning: format ‘%d expects argument of type int’, but argument 4 has type size_t {aka long unsigned int’}
12
13Signed-off-by: Erwin Rol <erwin@erwinrol.com>
14---
15 dmx_usb.c | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
17
18--- a/dmx_usb.c
19+++ b/dmx_usb.c
20@@ -406,7 +406,7 @@ static ssize_t dmx_usb_write (struct fil
21
22 dev = (struct dmx_usb_device *)file->private_data;
23
24- dbg("%s - minor %d, count = %d", __FUNCTION__, dev->minor, count);
25+ dbg("%s - minor %d, count = %zu", __FUNCTION__, dev->minor, count);
26
27 /* lock this object */
28 down (&dev->sem);
29@@ -500,7 +500,7 @@ static long dmx_usb_ioctl (struct file *
30 return -ENODEV;
31 }
32
33- dbg("%s - minor %d, cmd 0x%.4x, arg %ld", __FUNCTION__,
34+ dbg("%s - minor %d, cmd 0x%.4x, arg %lu", __FUNCTION__,
35 dev->minor, cmd, arg);
36
37 /* fill in your device specific stuff here */