aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-09-30 14:06:37 -0700
committerGuy Harris <guy@alum.mit.edu>2018-09-30 21:07:28 +0000
commite7dec27ea024fd8e2e5b5370b692254d9a777ed6 (patch)
treeb3dcea5840452448e17ebdc8afff6b79871d75d6 /epan/wslua
parent9a0008f841817bfca2e47b21b255950caef795c4 (diff)
Show the *per-file* encapsulation in the __tostring method.
We use the per-file encapsulation everywhere else; use it there as well. Change-Id: I3e3df234a9f541a9d90e54a3c0f41b5019e00bb3 Reviewed-on: https://code.wireshark.org/review/29940 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/wslua')
-rw-r--r--epan/wslua/wslua_capture_info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/wslua/wslua_capture_info.c b/epan/wslua/wslua_capture_info.c
index b2e127b10b..996b313d1b 100644
--- a/epan/wslua/wslua_capture_info.c
+++ b/epan/wslua/wslua_capture_info.c
@@ -68,8 +68,8 @@ WSLUA_METAMETHOD CaptureInfo__tostring(lua_State* L) {
lua_pushstring(L,"CaptureInfo pointer is NULL!");
} else {
wtap *wth = fi->wth;
- lua_pushfstring(L, "CaptureInfo: file_type_subtype=%d, snapshot_length=%d, pkt_encap=%d, file_tsprec='%s'",
- wth->file_type_subtype, wth->snapshot_length, wth->rec.rec_header.packet_header.pkt_encap, wth->file_tsprec);
+ lua_pushfstring(L, "CaptureInfo: file_type_subtype=%d, snapshot_length=%d, file_encap=%d, file_tsprec='%s'",
+ wth->file_type_subtype, wth->snapshot_length, wth->file_encap, wth->file_tsprec);
}
WSLUA_RETURN(1); /* String of debug information. */