diff uptools/atcmd/smdump.c @ 801:da724c67159d

fcup-smdump: use new function for Phonebook-Name
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 25 Mar 2021 01:40:36 +0000
parents dc2fd8e6f42c
children
line wrap: on
line diff
--- a/uptools/atcmd/smdump.c	Thu Mar 25 01:29:05 2021 +0000
+++ b/uptools/atcmd/smdump.c	Thu Mar 25 01:40:36 2021 +0000
@@ -110,11 +110,9 @@
 
 emit_pb_name()
 {
-	u_char decoded_name[81];
-
-	gsm7_to_ascii_or_ext(pbname_gsm, pbname_len, decoded_name,
-			     (unsigned *) 0, 0, 0, (unsigned *) 0);
-	printf("Phonebook-Name: %s\n", decoded_name);
+	fputs("Phonebook-Name: ", stdout);
+	print_gsm7_string_to_file(pbname_gsm, pbname_len, stdout);
+	putchar('\n');
 }
 
 cmgl_pdu()