summaryrefslogtreecommitdiff
path: root/lib/lua/gpio
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2012-03-15 02:02:20 +0000
committerjoerg <joerg@NetBSD.org>2012-03-15 02:02:20 +0000
commit85ebf103375262b27fffdad71fc44b299417f3ff (patch)
treee1ed527b316eb219b289e5214b93f707880a0ca1 /lib/lua/gpio
parentfa80b16724ce0bd6438d61e3a11855ca361f10d7 (diff)
Add __printflike attribution to use vprintf and friends with an argument
as format string.
Diffstat (limited to 'lib/lua/gpio')
-rw-r--r--lib/lua/gpio/gpio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lua/gpio/gpio.c b/lib/lua/gpio/gpio.c
index 4457d3ec4ca..ed6ef056e49 100644
--- a/lib/lua/gpio/gpio.c
+++ b/lib/lua/gpio/gpio.c
@@ -1,4 +1,4 @@
-/* $NetBSD: gpio.c,v 1.6 2011/11/13 16:56:15 mbalmer Exp $ */
+/* $NetBSD: gpio.c,v 1.7 2012/03/15 02:02:21 joerg Exp $ */
/*
* Copyright (c) 2011 Marc Balmer <marc@msys.ch>
@@ -45,7 +45,7 @@
#define GPIO_METATABLE "GPIO object methods"
-static void
+static __printflike(2, 3) void
gpio_error(lua_State *L, const char *fmt, ...)
{
va_list ap;