sdm: Enable options for variable args.

CRs-Fixed: 2617483
Change-Id: I3f576c2f301d48a0d13a6e53efff1b823a648ffb
diff --git a/composer/hwc_debugger.h b/composer/hwc_debugger.h
index db8c2a6..321c67b 100644
--- a/composer/hwc_debugger.h
+++ b/composer/hwc_debugger.h
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2014 - 2018, The Linux Foundation. All rights reserved.
+* Copyright (c) 2014 - 2018, 2020 The Linux Foundation. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are
@@ -61,11 +61,11 @@
   static void DebugDisplay(bool enable, int verbose_level);
   static int  GetIdleTimeoutMs();
 
-  virtual void Error(const char *format, ...);
-  virtual void Warning(const char *format, ...);
-  virtual void Info(const char *format, ...);
-  virtual void Debug(const char *format, ...);
-  virtual void Verbose(const char *format, ...);
+  virtual void Error(const char *fmt, ...) __attribute__((format(printf, 2, 3)));
+  virtual void Warning(const char *fmt, ...) __attribute__((format(printf, 2, 3)));
+  virtual void Info(const char *fmt, ...) __attribute__((format(printf, 2, 3)));
+  virtual void Debug(const char *fmt, ...) __attribute__((format(printf, 2, 3)));
+  virtual void Verbose(const char *fmt, ...) __attribute__((format(printf, 2, 3)));
   virtual void BeginTrace(const char *class_name, const char *function_name,
                           const char *custom_string);
   virtual void EndTrace();