Mailing List Archive

[xen-unstable] xentrace: Bit-field boolean must be unsigned.
# HG changeset patch
# User kfraser@localhost.localdomain
# Date 1180963486 -3600
# Node ID 6c636bd3f87420bf61e3c7a70d91301973019cbf
# Parent c388a2ff1b8e1fba4fe88cd9365e493b715abf25
xentrace: Bit-field boolean must be unsigned.
Signed-off-by: Keir Fraser <keir@xensource.com>
---
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@lists.xensource.com
http://lists.xensource.com/xen-changelog