mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
cxgbe(4): dump_devlog should never fail silently.
Do the same thing as dump_cimla and log a warning on failure. MFC after: 3 days Sponsored by: Chelsio Communications
This commit is contained in:
parent
0455cc7104
commit
9282f04ff0
1 changed files with 4 additions and 1 deletions
|
|
@ -9447,8 +9447,11 @@ dump_devlog(struct adapter *sc)
|
|||
int rc;
|
||||
struct sbuf sb;
|
||||
|
||||
if (sbuf_new(&sb, NULL, 4096, SBUF_AUTOEXTEND) != &sb)
|
||||
if (sbuf_new(&sb, NULL, 4096, SBUF_AUTOEXTEND) != &sb) {
|
||||
log(LOG_DEBUG, "%s: failed to generate devlog dump.\n",
|
||||
device_get_nameunit(sc->dev));
|
||||
return;
|
||||
}
|
||||
rc = sbuf_devlog(sc, &sb, M_NOWAIT);
|
||||
if (rc == 0) {
|
||||
rc = sbuf_finish(&sb);
|
||||
|
|
|
|||
Loading…
Reference in a new issue