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 <bjarkix123@gmail.com>
This commit is contained in:
parent
ee44357cfb
commit
b4f3150592
1 changed files with 2 additions and 2 deletions
|
@ -449,7 +449,7 @@ static void modem_cmux_on_control_frame(struct modem_cmux *cmux)
|
|||
break;
|
||||
|
||||
default:
|
||||
LOG_WRN("Unknown control frame type");
|
||||
LOG_WRN("Unknown %s frame type", "control");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -533,7 +533,7 @@ static void modem_cmux_on_dlci_frame(struct modem_cmux *cmux)
|
|||
break;
|
||||
|
||||
default:
|
||||
LOG_WRN("Unknown DLCI frame type");
|
||||
LOG_WRN("Unknown %s frame type", "DLCI");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue