Commit Graph

17 Commits

Author SHA1 Message Date
Harald Welte cb5d8473d7 move variable declarations out of the 'for' loop
this fixes compilation with gcc-4.8
2017-01-24 17:36:39 +01:00
Harald Welte 7c5858ec43 diag_msg: Mark dispatch table as 'const' 2017-01-22 00:01:58 +01:00
Harald Welte cf854caa9b diag_msg: Don't replace second character of every msg with 'p'
We want to replace all %s with %p, but not modify other parts of the
format string...
2017-01-21 11:22:44 +01:00
Harald Welte 70ff72d5f4 fix various compilation warnings all over the code 2017-01-21 11:20:07 +01:00
Harald Welte b8a70980b6 patch %s out of format strings received from phone
%s can obviously not work, as we have no access to the targets memory
space on the host PC.  I guess the programmers adding those log lines
have done so in error.  Let's replace %s with %p in the format string.
2017-01-08 16:04:01 +01:00
Harald Welte 4ae0936123 WIP: Enable PCAP generation in modem 2017-01-07 16:01:42 +01:00
Harald Welte 651d4d8fbc replace old magic numbers with proper #defines 2017-01-02 00:53:11 +01:00
Harald Welte 89c159c873 add printing of DIAG_QSR_EXT_MSG_TERSE_F
Those are QSHRINK type messages where the format-string is not contained
in the message itself but would have to be provided from an external
source and looked up by a hash.
2017-01-01 19:51:50 +01:00
Harald Welte 022c45a263 register diag_msg via the diag_cmd dispatch table 2017-01-01 19:51:50 +01:00
Harald Welte 7af93aacba diag_msg: endian fixes 2017-01-01 19:51:50 +01:00
Harald Welte f6bd58c7fb diag_msg: Include subsys_id in printed message 2017-01-01 19:51:50 +01:00
Harald Welte f180199521 diag_msgc: Parse responses 2017-01-01 19:51:50 +01:00
Harald Welte dc2cafcd97 restructuring: Introduce _transceive_ functions for Tx-then-Rx 2017-01-01 19:51:50 +01:00
Harald Welte ccea8dd51c Add GPLv2-or-later license text + headers + rename to osmo-qcdiag-log 2016-12-24 10:31:07 +01:00
Harald Welte 84ec50f901 header file restructuring
Move all protocol definitions to protocol/*.h and keep only
definitions related to our implementation as *.h in the top directory.

Also, remove some header files to reduce header file proliferation.
2016-12-24 10:16:00 +01:00
Harald Welte 6fc7f68db8 introduce API for MSG SSID runtime mask configuration 2016-12-24 10:01:28 +01:00
Harald Welte 0e50916954 move DIAG MSG handling to separate file diag_msg.c 2016-12-24 01:32:10 +01:00