Skip to content

Commit bc3defa

Browse files
committed
shell: modem shell sms error made more descriptive
Made modem shell SMS truncation warning more informative. Signed-off-by: Jared Baumann <[email protected]>
1 parent 3946500 commit bc3defa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/modem/modem_shell.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ static int cmd_modem_sms_send(const struct shell *shell, size_t argc,
281281

282282
if (strlen(argv[3]) > (sizeof(sms.msg) - 1)) {
283283
shell_fprintf(shell, SHELL_WARNING,
284-
"Specified message longer than maximum, truncating message\n");
284+
"SMS message exceeds limit (%d>%d), truncating message",
285+
strlen(argv[3]), CONFIG_MODEM_SMS_OUT_MSG_MAX_LEN);
285286
}
286287

287288
snprintk(sms.phone, sizeof(sms.phone), "%s", argv[2]);

0 commit comments

Comments
 (0)