summaryrefslogtreecommitdiffstats
path: root/openbsc/contrib
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-07 19:16:31 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-07 19:16:31 +0800
commitf488121058f246e93116d48f06fa354bf7bf443d (patch)
treeb17c0216df41b09e732895452ca0bf40ec0e8d67 /openbsc/contrib
parent7d3b3d0e717be3a737a30e68457d7c6835810971 (diff)
GPRS: Show the TLLI as hex value...
Diffstat (limited to 'openbsc/contrib')
-rw-r--r--openbsc/contrib/gprs/gprs-split-trace-by-tlli.lua5
-rw-r--r--openbsc/contrib/gprs/gprs-verify-nu.lua6
2 files changed, 8 insertions, 3 deletions
diff --git a/openbsc/contrib/gprs/gprs-split-trace-by-tlli.lua b/openbsc/contrib/gprs/gprs-split-trace-by-tlli.lua
index af7084715..ef16105be 100644
--- a/openbsc/contrib/gprs/gprs-split-trace-by-tlli.lua
+++ b/openbsc/contrib/gprs/gprs-split-trace-by-tlli.lua
@@ -22,8 +22,9 @@ do
local ttli_str = tostring(ttli)
ttli_dmp = dumpers[ttli_str]
if not ttli_dmp then
- print("Creating TLLI " .. tostring(ttli) .. " " .. ttli_str)
- ttli_dmp = Dumper.new_for_current(dir .. "/" .. ttli_str .. ".pcap")
+ local ttli_hex = string.format("0x%x", tonumber(ttli_str))
+ print("Creating dump for TLLI " .. ttli_hex)
+ ttli_dmp = Dumper.new_for_current(dir .. "/" .. ttli_hex .. ".pcap")
dumpers[ttli_str] = ttli_dmp
end
ttli_dmp:dump_current()
diff --git a/openbsc/contrib/gprs/gprs-verify-nu.lua b/openbsc/contrib/gprs/gprs-verify-nu.lua
index 63cc49268..f6f42c465 100644
--- a/openbsc/contrib/gprs/gprs-verify-nu.lua
+++ b/openbsc/contrib/gprs/gprs-verify-nu.lua
@@ -37,9 +37,13 @@ do
return
end
+ local function tohex(number)
+ return string.format("0x%x", tonumber(number))
+ end
+
nu_state_src[src_key] = llc_nu
if tonumber(last_nu) + 1 ~= tonumber(llc_nu) then
- print("JUMP in N(U) on TLLI " .. bssgp_ttli .. " and SAPI: " .. llc_sapi)
+ print("JUMP in N(U) on TLLI " .. tohex(bssgp_ttli) .. " and SAPI: " .. llc_sapi)
print("\t last: " .. last_nu .. " now: " .. llc_nu)
end
end