Skip to content

Commit b4f3150

Browse files
Bjarki Arge Andreasenfabiobaltieri
authored andcommitted
modem: cmux: Optimize log message to save ROM
This commit reuses the string "Unknown %s frame type" for two log messages, as suggested by ycsin. Signed-off-by: Bjarki Arge Andreasen <[email protected]>
1 parent ee44357 commit b4f3150

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subsys/modem/modem_cmux.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ static void modem_cmux_on_control_frame(struct modem_cmux *cmux)
449449
break;
450450

451451
default:
452-
LOG_WRN("Unknown control frame type");
452+
LOG_WRN("Unknown %s frame type", "control");
453453
break;
454454
}
455455
}
@@ -533,7 +533,7 @@ static void modem_cmux_on_dlci_frame(struct modem_cmux *cmux)
533533
break;
534534

535535
default:
536-
LOG_WRN("Unknown DLCI frame type");
536+
LOG_WRN("Unknown %s frame type", "DLCI");
537537
break;
538538
}
539539
}

0 commit comments

Comments
 (0)