arehbein submitted this change.

View Change


Approvals: Jenkins Builder: Verified pespin: Looks good to me, approved
stream: Fix osmo_panic log fmts

Change-Id: Id082a9473b788f8de20cdc2ba4430b3289f4ce5a
---
M src/stream.c
1 file changed, 14 insertions(+), 4 deletions(-)

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 change 33206. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: Id082a9473b788f8de20cdc2ba4430b3289f4ce5a
Gerrit-Change-Number: 33206
Gerrit-PatchSet: 11
Gerrit-Owner: arehbein <arehbein@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: arehbein <arehbein@sysmocom.de>
Gerrit-Reviewer: daniel <dwillmann@sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>
Gerrit-MessageType: merged