FreeCalypso > hg > osmo-playpen
comparison smsc-daemon/record_mo.c @ 9:dfe99a061249
smsc-daemon: fflush the log file after writing MO SM to it
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 25 Aug 2023 15:48:08 -0800 |
parents | cef4677a4cf8 |
children | f9a83463ab52 |
comparison
equal
deleted
inserted
replaced
8:81386a48c463 | 9:dfe99a061249 |
---|---|
66 lv_buf[0] = len - skip_byte; | 66 lv_buf[0] = len - skip_byte; |
67 memcpy(lv_buf + 1, data + skip_byte, len - skip_byte); | 67 memcpy(lv_buf + 1, data + skip_byte, len - skip_byte); |
68 gsm48_decode_bcd_number2(decode_buf, sizeof decode_buf, | 68 gsm48_decode_bcd_number2(decode_buf, sizeof decode_buf, |
69 lv_buf, sizeof lv_buf, 0); | 69 lv_buf, sizeof lv_buf, 0); |
70 fprintf(smsc_log_file, "%s\n", decode_buf[0] ? decode_buf : "<empty>"); | 70 fprintf(smsc_log_file, "%s\n", decode_buf[0] ? decode_buf : "<empty>"); |
71 fflush(smsc_log_file); | |
71 } | 72 } |
72 | 73 |
73 void record_mo_sm(struct osmo_gsup_message *gmsg) | 74 void record_mo_sm(struct osmo_gsup_message *gmsg) |
74 { | 75 { |
75 time_t curtime; | 76 time_t curtime; |