QEMU update with VENOM (CVE-2015-3456) patch
[packages/centos6/qemu.git] / 0206-xilinx_timer-Send-dbg-msgs-to-stderr-not-stdout.patch
1 From c03bf619fe8eb416aaea1f8b75b313a4b314ffeb Mon Sep 17 00:00:00 2001
2 From: "Peter A. G. Crosthwaite" <peter.crosthwaite@petalogix.com>
3 Date: Thu, 28 Jun 2012 16:28:03 +1000
4 Subject: [PATCH] xilinx_timer: Send dbg msgs to stderr not stdout
5
6 Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
7 (cherry picked from commit e03377ae75808d33d0a7afc803b37bcda9f796b3)
8
9 Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
10 ---
11  hw/xilinx_timer.c | 8 ++++----
12  1 file changed, 4 insertions(+), 4 deletions(-)
13
14 diff --git a/hw/xilinx_timer.c b/hw/xilinx_timer.c
15 index 053ba02..c02e6ca 100644
16 --- a/hw/xilinx_timer.c
17 +++ b/hw/xilinx_timer.c
18 @@ -119,7 +119,7 @@ timer_read(void *opaque, target_phys_addr_t addr, unsigned int size)
19              break;
20  
21      }
22 -    D(printf("%s timer=%d %x=%x\n", __func__, timer, addr * 4, r));
23 +    D(fprintf(stderr, "%s timer=%d %x=%x\n", __func__, timer, addr * 4, r));
24      return r;
25  }
26  
27 @@ -127,7 +127,7 @@ static void timer_enable(struct xlx_timer *xt)
28  {
29      uint64_t count;
30  
31 -    D(printf("%s timer=%d down=%d\n", __func__,
32 +    D(fprintf(stderr, "%s timer=%d down=%d\n", __func__,
33                xt->nr, xt->regs[R_TCSR] & TCSR_UDT));
34  
35      ptimer_stop(xt->ptimer);
36 @@ -152,7 +152,7 @@ timer_write(void *opaque, target_phys_addr_t addr,
37      addr >>= 2;
38      timer = timer_from_addr(addr);
39      xt = &t->timers[timer];
40 -    D(printf("%s addr=%x val=%x (timer=%d off=%d)\n",
41 +    D(fprintf(stderr, "%s addr=%x val=%x (timer=%d off=%d)\n",
42               __func__, addr * 4, value, timer, addr & 3));
43      /* Further decoding to address a specific timers reg.  */
44      addr &= 3;
45 @@ -189,7 +189,7 @@ static void timer_hit(void *opaque)
46  {
47      struct xlx_timer *xt = opaque;
48      struct timerblock *t = xt->parent;
49 -    D(printf("%s %d\n", __func__, timer));
50 +    D(fprintf(stderr, "%s %d\n", __func__, timer));
51      xt->regs[R_TCSR] |= TCSR_TINT;
52  
53      if (xt->regs[R_TCSR] & TCSR_ARHT)
54 -- 
55 1.7.12.1
56