Apply __attribute__((format(printf..))) to Public dlog_print() 43/194943/1
authorHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 10 Dec 2018 03:01:35 +0000 (12:01 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 10 Dec 2018 03:01:39 +0000 (12:01 +0900)
commit6b5b9d0c435fa4b79395e22bc8ba39eedee3f0c0
tree7745594b401e645b750379c2162edbf626860e20
parent6c9eb475de4613d9039819c182c5e1b8e3980f28
Apply __attribute__((format(printf..))) to Public dlog_print()

to check format even for variable arguments (...)

format (printf, string-index, first-to-check)
- string-index : format string index (starting from 1)
- first-to-check : first argument index to be checked
https://gcc.gnu.org/onlinedocs/gcc-4.0.1/gcc/Function-Attributes.html#Function-Attributes

Change-Id: I852fcea60109517e50e26e3ee1a8064fd9bb649f
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
include/dlog.h