[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZZrEXSU3Bx85rSGo@finisterre.sirena.org.uk>
Date: Sun, 7 Jan 2024 15:33:49 +0000
From: Mark Brown <broonie@...nel.org>
To: Mirsad Todorovac <mirsad.todorovac@....unizg.hr>
Cc: Nícolas F. R. A. Prado <nfraprado@...labora.com>,
linux-sound@...r.kernel.org, linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org, Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, Shuah Khan <shuah@...nel.org>
Subject: Re: [PATCH v1 3/4] ksellftest: alsa: Fix the printf format specifier
to unsigned int
On Sun, Jan 07, 2024 at 04:12:20PM +0100, Mirsad Todorovac wrote:
> mixer-test.c:350:80: warning: format ‘%ld’ expects argument of type ‘long int’, \
> but argument 5 has type ‘unsigned int’ [-Wformat=]
If this is the issue then...
> - ksft_print_msg("%s.%d value %ld more than item count %ld\n",
> + ksft_print_msg("%s.%d value %ld more than item count %d\n",
> ctl->name, index, int_val,
> snd_ctl_elem_info_get_items(ctl->info));
...why are we not using an unsigned format specifier here? I am very
suprised this doesn't continue to warn.
Please submit patches using subject lines reflecting the style for the
subsystem, this makes it easier for people to identify relevant patches.
Look at what existing commits in the area you're changing are doing and
make sure your subject lines visually resemble what they're doing.
There's no need to resubmit to fix this alone.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists