%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.
This forwards the raw DIAG messages via GSMTAP, so the receiver (e.g.
wireshark) will have to do a full DIAG protocol decode. I currently
prefer this idea to that of converting only the protocol payload to
"native" GSMTAP messages like GSMTAP_UM.
One of the problems is that the LAPDm headers are alrady stripped, and
we would have to re-add fake LAPDm headers to generate GSMTAP_UM. So
let's rather forward all information we have and let wireshark deal with
I'm not entirely sure if this is the best strategy, but we can always
implement both modes and switch between them at runtime.