Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Lua converting a UINT64 to hex

From: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
Date: Tue, 20 Nov 2012 11:08:29 +0100
On Mon, Nov 19, 2012 at 5:07 PM, Zadik, Maayan <mzadik@xxxxxxxxxxxxxxxx> wrote:
> Local s = string.format("%X", data.value)
>
> and get the following error:
> bad argument #2 to 'format' (number expected, got userdata)

Just try converting data.value with tostring first, like this:

local s = string.format("%X", tostring(data.value))


-- 
Stig Bjørlykke