WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xentrace: Bit-field boolean must be unsig

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xentrace: Bit-field boolean must be unsigned.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 11 Jun 2007 02:22:06 -0700
Delivery-date: Mon, 11 Jun 2007 02:23:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1180963486 -3600
# Node ID 6c636bd3f87420bf61e3c7a70d91301973019cbf
# Parent  c388a2ff1b8e1fba4fe88cd9365e493b715abf25
xentrace: Bit-field boolean must be unsigned.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/xentrace/xentrace.c |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff -r c388a2ff1b8e -r 6c636bd3f874 tools/xentrace/xentrace.c
--- a/tools/xentrace/xentrace.c Mon Jun 04 14:05:10 2007 +0100
+++ b/tools/xentrace/xentrace.c Mon Jun 04 14:24:46 2007 +0100
@@ -56,7 +56,7 @@ typedef struct settings_st {
     uint32_t evt_mask;
     uint32_t cpu_mask;
     unsigned long tbuf_size;
-    int discard:1;
+    uint8_t discard:1;
 } settings_t;
 
 settings_t opts;
@@ -308,12 +308,9 @@ int monitor_tbufs(FILE *logfile)
     meta  = init_bufs_ptrs(tbufs_mapped, num, size);
     data  = init_rec_ptrs(meta, num);
 
-    if(opts.discard) {
-        for ( i = 0; (i < num) ; i++ )
-        {
-           meta[i]->cons = meta[i]->prod;
-        }
-    }
+    if ( opts.discard )
+        for ( i = 0; i < num; i++ )
+            meta[i]->cons = meta[i]->prod;
 
     /* now, scan buffers for events */
     while ( !interrupted )
@@ -423,7 +420,7 @@ error_t cmd_parser(int key, char *arg, s
 
     case 'D': /* Discard traces currently in the buffer before beginning */
     {
-        opts.discard=1;
+        opts.discard = 1;
     }
     break;
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xentrace: Bit-field boolean must be unsigned., Xen patchbot-unstable <=