FreeCalypso > hg > freecalypso-tools
changeset 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 | 8dc93aac9a9c |
children | 1c599681fd60 |
files | uptools/atcmd/smdump.c |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
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()