Change in ...libosmocore[master]: fsm: Quote received event token in logging line

pespin gerrit-no-reply at lists.osmocom.org
Mon Aug 12 10:19:31 UTC 2019


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/15154


Change subject: fsm: Quote received event token in logging line
......................................................................

fsm: Quote received event token in logging line

Otherwise confusing log lines can appear on some event names, for
instance:
"Received Event Received an attach request"

Change-Id: Ibeaeb046058777c2367e3cbfff0e00fc7e3a1640
---
M src/fsm.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/54/15154/1

diff --git a/src/fsm.c b/src/fsm.c
index c886351..af4f1ee 100644
--- a/src/fsm.c
+++ b/src/fsm.c
@@ -806,7 +806,7 @@
 	fs = &fi->fsm->states[fi->state];
 
 	LOGPFSMSRC(fi, file, line,
-		   "Received Event %s\n", osmo_fsm_event_name(fsm, event));
+		   "Received Event '%s'\n", osmo_fsm_event_name(fsm, event));
 
 	if (((1 << event) & fsm->allstate_event_mask) && fsm->allstate_action) {
 		fsm->allstate_action(fi, event, data);

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/15154
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ibeaeb046058777c2367e3cbfff0e00fc7e3a1640
Gerrit-Change-Number: 15154
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190812/9da400fd/attachment.html>


More information about the gerrit-log mailing list