Description: Fix build failure with -Werror=format-security
Author: Alessio Treglia <alessio@debian.org>
Forwarded: no
---
 das_watchdog.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- das-watchdog.orig/das_watchdog.c
+++ das-watchdog/das_watchdog.c
@@ -51,14 +51,14 @@ typedef u_int64_t ui64;
 typedef guint64 ui64;
 #endif
 
-#define OPTARGS_BEGIN(das_usage) {int lokke;const char *usage=das_usage;for(lokke=1;lokke<argc;lokke++){char *a=argv[lokke];if(!strcmp("--help",a)||!strcmp("-h",a)){printf(usage);return 0;
+#define OPTARGS_BEGIN(das_usage) {int lokke;const char *usage=das_usage;for(lokke=1;lokke<argc;lokke++){char *a=argv[lokke];if(!strcmp("--help",a)||!strcmp("-h",a)){printf("%s", usage);return 0;
 #define OPTARG(name,name2) }}else if(!strcmp(name,a)||!strcmp(name2,a)){{
 #define OPTARG_GETINT() atoi(argv[++lokke])
 #define OPTARG_GETFLOAT() atof(argv[++lokke])
 #define OPTARG_GETSTRING() argv[++lokke]
 #define OPTARG_LAST() }}else if(lokke==argc-1){lokke--;{
 #define OPTARGS_ELSE() }else if(1){
-#define OPTARGS_END }else{fprintf(stderr,usage);return(-1);}}}
+#define OPTARGS_END }else{fprintf(stderr,"%s",usage);return(-1);}}}
 
 
 static int increasetime=1; // Seconds between each time the SCHED_OTHER thread is increasing the counter.
@@ -93,7 +93,7 @@ static void print_error(FILE *where,char
   va_start(ap, fmt);{
     vsnprintf (temp, 9998, fmt, ap);
   }va_end(ap);
-  syslog(LOG_INFO,temp);
+  syslog(LOG_INFO,"%s",temp);
   fprintf(where,"Das_Watchdog: %s\n",temp);
 }
 
@@ -572,7 +572,7 @@ int main(int argc,char **argv){
 	{
 	  char message[5000];
 	  sprintf(message,"realtime operations paused for %d seconds.",waittime);
-	  syslog(LOG_INFO,message);
+	  syslog(LOG_INFO,"%s",message);
 	}
 
 	if(fork()==0){
