]> sigrok.org Git - libsigrok.git/commit - src/libsigrok-internal.h
libsigrok-internal.h: factor out logger decl's printf format attribute
authorGerhard Sittig <redacted>
Fri, 6 Oct 2023 16:00:37 +0000 (18:00 +0200)
committerGerhard Sittig <redacted>
Sat, 7 Oct 2023 13:36:09 +0000 (15:36 +0200)
commit913c5981eabebd1dbd5dbad27d895a7bcdbcfdac
tree68e350ee725a6fd79596eff96e1f3dbf8a042f42
parentc3fc22f2567ab0680d2cabceee743699d671ee7f
libsigrok-internal.h: factor out logger decl's printf format attribute

Provide a common ATTR_FMT_PRINTF() macro which hides individual
platforms' details. Use it in one common sr_log() declaration.

This also allows re-use in other locations across the project.
src/libsigrok-internal.h