Skip to content

Commit 5f7ff90

Browse files
ukleinekUwe Kleine-König
authored andcommitted
pwm: Use %u to printf unsigned int pwm_chip::npwm and pwm_chip::id
%u is the right conversion specifier to emit an unsigned int value. Fixes: 62099ab ("pwm: Add debugfs interface") Fixes: 0360a48 ("pwm: Mention PWM chip ID in /sys/kernel/debug/pwm") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Link: https://patch.msgid.link/20251006133525.2457171-2-u.kleine-koenig@baylibre.com Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
1 parent 3cf8e55 commit 5f7ff90

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pwm/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2696,7 +2696,7 @@ static int pwm_seq_show(struct seq_file *s, void *v)
26962696
{
26972697
struct pwm_chip *chip = v;
26982698

2699-
seq_printf(s, "%s%d: %s/%s, npwm: %d\n",
2699+
seq_printf(s, "%s%u: %s/%s, npwm: %u\n",
27002700
(char *)s->private, chip->id,
27012701
pwmchip_parent(chip)->bus ? pwmchip_parent(chip)->bus->name : "no-bus",
27022702
dev_name(pwmchip_parent(chip)), chip->npwm);

0 commit comments

Comments
 (0)