]> git.ipfire.org Git - thirdparty/util-linux.git/commit
rfkill: fix compiler warning [-Wformat=]
authorKarel Zak <kzak@redhat.com>
Thu, 6 May 2021 10:24:41 +0000 (12:24 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 6 May 2021 10:25:10 +0000 (12:25 +0200)
commitf798aed128f8ccdcd30bd3d82d577f6d1115e37a
treed8045058020fb95273cdbe709dc03754b1d11e90
parentc8d931ebe2bc75862ca5d48ab5694570d4c89662
rfkill: fix compiler warning [-Wformat=]

* `RFKILL_EVENT_SIZE_V1` is defined as sizeof(struct rfkill_event), so let's use %zu

* cast `len` to size_t to make it usable with %zu

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/rfkill.c