]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ALSA: dbri: Fix formatting issue in dbri.c
authorZhu Jun <zhujun2@cmss.chinamobile.com>
Tue, 8 Oct 2024 05:51:55 +0000 (22:51 -0700)
committerTakashi Iwai <tiwai@suse.de>
Tue, 8 Oct 2024 08:13:33 +0000 (10:13 +0200)
Changed sprintf format specifier for rp->start from %016Lx to %016llx
to correctly handle unsigned long long values.

Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
Link: https://patch.msgid.link/20241008055155.11798-1-zhujun2@cmss.chinamobile.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/sparc/dbri.c

index 050e98f32d3621d4233089daac398525883a8263..b5d53c5550d30dc2b09556c80de819eb11764a0e 100644 (file)
@@ -2616,7 +2616,7 @@ static int dbri_probe(struct platform_device *op)
        strcpy(card->driver, "DBRI");
        strcpy(card->shortname, "Sun DBRI");
        rp = &op->resource[0];
-       sprintf(card->longname, "%s at 0x%02lx:0x%016Lx, irq %d",
+       sprintf(card->longname, "%s at 0x%02lx:0x%016llx, irq %d",
                card->shortname,
                rp->flags & 0xffL, (unsigned long long)rp->start, irq);