aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarehbein <arehbein@sysmocom.de>2023-06-25 18:13:30 +0200
committerarehbein <arehbein@sysmocom.de>2023-07-25 14:41:50 +0200
commit2bd08ade1facb7b14a3d627ae8297aec66f6691c (patch)
treebd4f4de18737c859ed196f4400ca9dd0c35934a2
parent4b4298965f1955edff5a244e487607fcc33b9b23 (diff)
stream: Fix osmo_panic log fmts
-rw-r--r--src/stream.c9
1 files changed, 5 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 @@ static int osmo_stream_cli_fd_cb(struct osmo_fd *ofd, unsigned int what)
}
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 @@ static void stream_cli_iofd_read_cb(struct osmo_io_fd *iofd, int res, struct msg
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 @@ static void stream_cli_iofd_write_cb(struct osmo_io_fd *iofd, int res, struct ms
}
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);
}
}