hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit c71b8626b8c4e05ef86f603246abdc395c08f9d1
parent 8036a75d67709f13f3aa85a9b4fea091f8b5fc9d
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat, 14 May 2022 12:41:56 +0200

cmd/ioctlgen: use hex for output

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mcmd/ioctlgen/main.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/ioctlgen/main.ha b/cmd/ioctlgen/main.ha @@ -65,7 +65,7 @@ export fn main() void = { const ioctl = parseioctl(store, dir, groups[2].content); const prefix = strings::sub(line, 0, groups[1].start - 1); - fmt::printfln("{}{};", prefix, ioctlno(&ioctl))!; + fmt::printfln("{}0x{:x};", prefix, ioctlno(&ioctl))!; }; };