summaryrefslogtreecommitdiffstats
path: root/daemon.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-11-23 01:28:14 +0100
committerJunio C Hamano <gitster@pobox.com>2009-11-23 01:28:14 +0100
commit82f05d5dd7ec54c4cd30f016c4380b21245e0d63 (patch)
treec81b46f0c28579c06b886074149e9762921a3ddc /daemon.c
parentMerge branch 'tr/maint-merge-ours-clarification' (early part) (diff)
parentCheck the format of more printf-type functions (diff)
downloadgit-82f05d5dd7ec54c4cd30f016c4380b21245e0d63.tar.xz
git-82f05d5dd7ec54c4cd30f016c4380b21245e0d63.zip
Merge branch 'tc/format-attribute'
* tc/format-attribute: Check the format of more printf-type functions
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon.c b/daemon.c
index ce4800621c..5783e24011 100644
--- a/daemon.c
+++ b/daemon.c
@@ -77,6 +77,7 @@ static void logreport(int priority, const char *err, va_list params)
}
}
+__attribute__((format (printf, 1, 2)))
static void logerror(const char *err, ...)
{
va_list params;
@@ -85,6 +86,7 @@ static void logerror(const char *err, ...)
va_end(params);
}
+__attribute__((format (printf, 1, 2)))
static void loginfo(const char *err, ...)
{
va_list params;