qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/4] ARM: exynos4210_pmu: changes in PRINT_DEBUG mac


From: Maksim Kozlov
Subject: [Qemu-devel] [PATCH 2/4] ARM: exynos4210_pmu: changes in PRINT_DEBUG macro set.
Date: Fri, 06 Jul 2012 19:49:25 +0400

It make possible to set DEBUG_PMU and DEBUG_PMU_EXTEND
independently of each other

Signed-off-by: Maksim Kozlov <address@hidden>
---
 hw/exynos4210_pmu.c |   23 +++++++++++++++++------
 1 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/hw/exynos4210_pmu.c b/hw/exynos4210_pmu.c
index 2be7e08..26a726f 100644
--- a/hw/exynos4210_pmu.c
+++ b/hw/exynos4210_pmu.c
@@ -34,26 +34,37 @@
 #define DEBUG_PMU_EXTEND    0
 #endif
 
-#if DEBUG_PMU
-#define  PRINT_DEBUG(fmt, args...)  \
+#if DEBUG_PMU || DEBUG_PMU_EXTEND
+
+    #define  PRINT_DEBUG(fmt, args...)  \
         do { \
             fprintf(stderr, "  [%s:%d]   "fmt, __func__, __LINE__, ##args); \
         } while (0)
 
 #if DEBUG_PMU_EXTEND
-#define  PRINT_DEBUG_EXTEND(fmt, args...) \
+
+    #define  PRINT_DEBUG_EXTEND(fmt, args...) \
         do { \
             fprintf(stderr, "  [%s:%d]   "fmt, __func__, __LINE__, ##args); \
         } while (0)
 #else
-#define  PRINT_DEBUG_EXTEND(fmt, args...)  do {} while (0)
+    #define  PRINT_DEBUG_EXTEND(fmt, args...) \
+        do {} while (0)
 #endif /* EXTEND */
 
 #else
-#define  PRINT_DEBUG(fmt, args...)   do {} while (0)
-#define  PRINT_DEBUG_EXTEND(fmt, args...)  do {} while (0)
+    #define  PRINT_DEBUG(fmt, args...) \
+        do {} while (0)
+    #define  PRINT_DEBUG_EXTEND(fmt, args...) \
+        do {} while (0)
 #endif
 
+#define  PRINT_ERROR(fmt, args...)                                          \
+        do {                                                                \
+            fprintf(stderr, "  [%s:%d]   "fmt, __func__, __LINE__, ##args); \
+        } while (0)
+
+
 /*
  *  Offsets for PMU registers
  */
-- 
1.7.5.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]