aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarehbein <arehbein@sysmocom.de>2023-06-25 18:13:30 +0200
committerarehbein <arehbein@sysmocom.de>2023-07-08 00:42:15 +0200
commit74ba26bb3d8a8ad0b2cb8fb3c98ff66471186fc6 (patch)
tree21e518e26ce6fb60a11430d860b323a493a847ec
parent4b4298965f1955edff5a244e487607fcc33b9b23 (diff)
stream (cosmetic): Fix osmo_panic log fmts
-rw-r--r--src/stream.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/stream.c b/src/stream.c
index 8de6cb8..68f1603 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,8 @@ 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 +631,8 @@ 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);
}
}