Skip to content

Commit

Permalink
Fix format warnings
Browse files Browse the repository at this point in the history
Fix the following warning

warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’}

Signed-off-by: Erwin Rol <erwin@erwinrol.com>
  • Loading branch information
lowlander committed Jan 13, 2023
1 parent e8e787f commit eeecf40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dmx_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ static ssize_t dmx_usb_write (struct file *file, const char *buffer, size_t coun

dev = (struct dmx_usb_device *)file->private_data;

dbg("%s - minor %d, count = %d", __FUNCTION__, dev->minor, count);
dbg("%s - minor %d, count = %zu", __FUNCTION__, dev->minor, count);

/* lock this object */
down (&dev->sem);
Expand Down Expand Up @@ -500,7 +500,7 @@ static long dmx_usb_ioctl (struct file *file, unsigned int cmd, unsigned long ar
return -ENODEV;
}

dbg("%s - minor %d, cmd 0x%.4x, arg %ld", __FUNCTION__,
dbg("%s - minor %d, cmd 0x%.4x, arg %lu", __FUNCTION__,
dev->minor, cmd, arg);

/* fill in your device specific stuff here */
Expand Down

0 comments on commit eeecf40

Please sign in to comment.