aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-01-01 11:56:11 +0100
committerHarald Welte <laforge@gnumonks.org>2017-01-01 19:51:50 +0100
commitf6bd58c7fb401ec8561ba480ac9489852e163707 (patch)
tree1deebdc26f756ca80d6a4000a05043a97bfc93f5
parente4204631bccaf33145133e980df395b4db309ac2 (diff)
diag_msg: Include subsys_id in printed message
-rw-r--r--src/diag_msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diag_msg.c b/src/diag_msg.c
index 53bc027..47c3c86 100644
--- a/src/diag_msg.c
+++ b/src/diag_msg.c
@@ -96,7 +96,7 @@ int diag_rx_ext_msg_f(struct diag_instance *di, struct msgb *msgb)
fmt = (const char *) msg->params + num_args*sizeof(msg->params[0]);
file = fmt + strlen(fmt) + 1;
- printf("MSG(%u|%s:%u): ", diag_ts_to_epoch(msg->timestamp), file, msg->line_nr);
+ printf("MSG(%u|%u|%s:%u): ", msg->subsys_id, diag_ts_to_epoch(msg->timestamp), file, msg->line_nr);
switch (num_args) {
case 0:
fputs(fmt, stdout);