arehbein has submitted this change. (
https://gerrit.osmocom.org/c/libosmo-netif/+/33206
)
Change subject: stream: Fix osmo_panic log fmts
......................................................................
stream: Fix osmo_panic log fmts
Change-Id: Id082a9473b788f8de20cdc2ba4430b3289f4ce5a
---
M src/stream.c
1 file changed, 14 insertions(+), 4 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, approved
diff --git a/src/stream.c b/src/stream.c
index 8de6cb8..9ff1df9 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -560,8 +560,9 @@
}
break;
default:
- /* Only CONNECTING and CONNECTED states are expected, since they are the only states
where FD exists: */
- osmo_panic("osmo_stream_cli_fd_cb called with unexpected state %d\n",
cli->state);
+ /* Only CONNECTING and CONNECTED states are expected, since they are the only states
+ * where FD exists: */
+ osmo_panic("%s() called with unexpected state %d\n", __func__,
cli->state);
}
return 0;
}
@@ -610,7 +611,7 @@
cli->iofd_read_cb(cli, msg);
break;
default:
- osmo_panic("osmo_stream_cli_write_cb() called with unexpected state %d\n",
cli->state);
+ osmo_panic("%s() called with unexpected state %d\n", __func__,
cli->state);
}
}
@@ -629,7 +630,7 @@
}
break;
default:
- osmo_panic("osmo_stream_cli_write_cb() called with unexpected state %d\n",
cli->state);
+ osmo_panic("%s() called with unexpected state %d\n", __func__,
cli->state);
}
}
--
To view, visit
https://gerrit.osmocom.org/c/libosmo-netif/+/33206
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: Id082a9473b788f8de20cdc2ba4430b3289f4ce5a
Gerrit-Change-Number: 33206
Gerrit-PatchSet: 11
Gerrit-Owner: arehbein <arehbein(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: arehbein <arehbein(a)sysmocom.de>
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged