ia64/xen-unstable
changeset 14547:57becbbe1564
Tidy up use of stdout vs stderr.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
author | Ewan Mellor <ewan@xensource.com> |
---|---|
date | Mon Mar 26 00:12:19 2007 +0100 (2007-03-26) |
parents | eb52a7f22e72 |
children | af87a02594b6 |
files | tools/libxen/test/test_bindings.c |
line diff
1.1 --- a/tools/libxen/test/test_bindings.c Mon Mar 26 00:09:00 2007 +0100 1.2 +++ b/tools/libxen/test/test_bindings.c Mon Mar 26 00:12:19 2007 +0100 1.3 @@ -266,12 +266,12 @@ int main(int argc, char **argv) 1.4 1.5 printf("%s.\n", vm_uuid); 1.6 1.7 - fprintf(stderr, "In bytes, the VM UUID is "); 1.8 + printf("In bytes, the VM UUID is "); 1.9 for (int i = 0; i < 15; i++) 1.10 { 1.11 - fprintf(stderr, "%x, ", (unsigned int)vm_uuid_bytes[i]); 1.12 + printf("%x, ", (unsigned int)vm_uuid_bytes[i]); 1.13 } 1.14 - fprintf(stderr, "%x.\n", (unsigned int)vm_uuid_bytes[15]); 1.15 + printf("%x.\n", (unsigned int)vm_uuid_bytes[15]); 1.16 1.17 printf("%zd.\n", versions->size); 1.18 1.19 @@ -529,16 +529,14 @@ static xen_vm create_new_vm(xen_session 1.20 } 1.21 1.22 if (hvm) { 1.23 - fprintf(stderr, 1.24 - "Created a new HVM VM, with UUID %s, VDI UUID %s, VBD " 1.25 - "UUID %s, and VNC console UUID %s.\n", 1.26 - vm_uuid, vdi0_uuid, vbd0_uuid, vnc_uuid); 1.27 + printf("Created a new HVM VM, with UUID %s, VDI UUID %s, VBD " 1.28 + "UUID %s, and VNC console UUID %s.\n", 1.29 + vm_uuid, vdi0_uuid, vbd0_uuid, vnc_uuid); 1.30 } 1.31 else { 1.32 - fprintf(stderr, 1.33 - "Created a new PV VM, with UUID %s, VDI UUID %s, and VBD " 1.34 - "UUID %s.\n", 1.35 - vm_uuid, vdi0_uuid, vbd0_uuid); 1.36 + printf("Created a new PV VM, with UUID %s, VDI UUID %s, and VBD " 1.37 + "UUID %s.\n", 1.38 + vm_uuid, vdi0_uuid, vbd0_uuid); 1.39 } 1.40 1.41 xen_uuid_free(vm_uuid); 1.42 @@ -579,6 +577,8 @@ static void print_vm_power_state(xen_ses 1.43 xen_vm_power_state_to_string(power_state)); 1.44 1.45 xen_uuid_free(vm_uuid); 1.46 + 1.47 + fflush(stdout); 1.48 } 1.49 1.50 1.51 @@ -627,6 +627,8 @@ static void print_session_info(xen_sessi 1.52 assert(!strcmp(record->this_user, this_user)); 1.53 1.54 xen_session_record_free(record); 1.55 + 1.56 + fflush(stdout); 1.57 } 1.58 1.59 1.60 @@ -664,4 +666,6 @@ static void print_vm_metrics(xen_session 1.61 1.62 xen_vm_metrics_record_free(vm_metrics_record); 1.63 xen_vm_metrics_free(vm_metrics); 1.64 + 1.65 + fflush(stdout); 1.66 }