Skip to content

Commit 429c16a

Browse files
committed
Fix reversed arguments and bump buffer size (thanks rillig@)
1 parent 9891ca7 commit 429c16a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

sys/dev/ic/sunscpal.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: sunscpal.c,v 1.29 2021/08/07 16:19:12 thorpej Exp $ */
1+
/* $NetBSD: sunscpal.c,v 1.30 2025/10/10 20:54:28 christos Exp $ */
22

33
/*
44
* Copyright (c) 2001 Matthew Fredette
@@ -76,7 +76,7 @@
7676
*/
7777

7878
#include <sys/cdefs.h>
79-
__KERNEL_RCSID(0, "$NetBSD: sunscpal.c,v 1.29 2021/08/07 16:19:12 thorpej Exp $");
79+
__KERNEL_RCSID(0, "$NetBSD: sunscpal.c,v 1.30 2025/10/10 20:54:28 christos Exp $");
8080

8181
#include "opt_ddb.h"
8282

@@ -307,9 +307,9 @@ sunscpal_dma_poll(struct sunscpal_softc *sc)
307307

308308
#ifdef SUNSCPAL_DEBUG
309309
if (sunscpal_debug & SUNSCPAL_DBG_DMA) {
310-
char buffer[64];
311-
snprintb(buffer, sizeof(buffer),
312-
SUNSCPAL_READ_2(sc, sunscpal_icr), SUNSCPAL_ICR_BITS);
310+
char buffer[128];
311+
snprintb(buffer, sizeof(buffer), SUNSCPAL_ICR_BITS,
312+
SUNSCPAL_READ_2(sc, sunscpal_icr));
313313
printf("%s: done, icr=%s\n", __func__, buffer);
314314
}
315315
#endif
@@ -354,7 +354,7 @@ sunscpal_dma_stop(struct sunscpal_softc *sc)
354354

355355

356356
if (icr & (SUNSCPAL_ICR_BUS_ERROR)) {
357-
char buffer[64];
357+
char buffer[128];
358358
snprintb(buffer, sizeof(buffer), SUNSCPAL_ICR_BITS, icr);
359359
printf("sc: DMA error, icr=%s, reset\n", buffer);
360360
sr->sr_xs->error = XS_DRIVER_STUFFUP;

0 commit comments

Comments
 (0)