|
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 $ */ |
2 | 2 |
|
3 | 3 | /* |
4 | 4 | * Copyright (c) 2001 Matthew Fredette |
|
76 | 76 | */ |
77 | 77 |
|
78 | 78 | #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 $"); |
80 | 80 |
|
81 | 81 | #include "opt_ddb.h" |
82 | 82 |
|
@@ -307,9 +307,9 @@ sunscpal_dma_poll(struct sunscpal_softc *sc) |
307 | 307 |
|
308 | 308 | #ifdef SUNSCPAL_DEBUG |
309 | 309 | 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)); |
313 | 313 | printf("%s: done, icr=%s\n", __func__, buffer); |
314 | 314 | } |
315 | 315 | #endif |
@@ -354,7 +354,7 @@ sunscpal_dma_stop(struct sunscpal_softc *sc) |
354 | 354 |
|
355 | 355 |
|
356 | 356 | if (icr & (SUNSCPAL_ICR_BUS_ERROR)) { |
357 | | - char buffer[64]; |
| 357 | + char buffer[128]; |
358 | 358 | snprintb(buffer, sizeof(buffer), SUNSCPAL_ICR_BITS, icr); |
359 | 359 | printf("sc: DMA error, icr=%s, reset\n", buffer); |
360 | 360 | sr->sr_xs->error = XS_DRIVER_STUFFUP; |
|
0 commit comments