Patchwork [1/2] Remove unused DEBUG defines from hw/msix.c

login
register
mail settings
Submitter Jes Sorensen
Date June 14, 2010, 3:05 p.m.
Message ID <1276527917-24703-2-git-send-email-Jes.Sorensen@redhat.com>
Download mbox | patch
Permalink /patch/55547/
State New
Headers show

Comments

Jes Sorensen - June 14, 2010, 3:05 p.m.
From: Jes Sorensen <Jes.Sorensen@redhat.com>

Remove unused DEBUG defines from hw/msix.c to avoid having anything
define the word DEBUG without any additions such as MSIX_DEBUG.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
---
 hw/msix.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
Anthony Liguori - June 14, 2010, 4:29 p.m.
On 06/14/2010 10:05 AM, Jes.Sorensen@redhat.com wrote:
> From: Jes Sorensen<Jes.Sorensen@redhat.com>
>
> Remove unused DEBUG defines from hw/msix.c to avoid having anything
> define the word DEBUG without any additions such as MSIX_DEBUG.
>
> Signed-off-by: Jes Sorensen<Jes.Sorensen@redhat.com>
>    

Applied.  Thanks.

Regards,

Anthony Liguori

> ---
>   hw/msix.c |    9 ---------
>   1 files changed, 0 insertions(+), 9 deletions(-)
>
> diff --git a/hw/msix.c b/hw/msix.c
> index 1613bb4..d99403a 100644
> --- a/hw/msix.c
> +++ b/hw/msix.c
> @@ -42,15 +42,6 @@
>   #define MSIX_MAX_ENTRIES 32
>
>
> -#ifdef MSIX_DEBUG
> -#define DEBUG(fmt, ...)                                       \
> -    do {                                                      \
> -      fprintf(stderr, "%s: " fmt, __func__ , __VA_ARGS__);    \
> -    } while (0)
> -#else
> -#define DEBUG(fmt, ...) do { } while(0)
> -#endif
> -
>   /* Flag for interrupt controller to declare MSI-X support */
>   int msix_supported;
>
>

Patch

diff --git a/hw/msix.c b/hw/msix.c
index 1613bb4..d99403a 100644
--- a/hw/msix.c
+++ b/hw/msix.c
@@ -42,15 +42,6 @@ 
 #define MSIX_MAX_ENTRIES 32
 
 
-#ifdef MSIX_DEBUG
-#define DEBUG(fmt, ...)                                       \
-    do {                                                      \
-      fprintf(stderr, "%s: " fmt, __func__ , __VA_ARGS__);    \
-    } while (0)
-#else
-#define DEBUG(fmt, ...) do { } while(0)
-#endif
-
 /* Flag for interrupt controller to declare MSI-X support */
 int msix_supported;