direct-io.hg

changeset 4364:fff34e3e2b40

bitkeeper revision 1.1159.258.76 (42490c5b3SVISdc-fROkhmb0BdgCvA)

Use fwrite() to write variable string in xfrd, to make it 64-bit safe.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Mar 29 08:05:47 2005 +0000 (2005-03-29)
parents 8f4d7fcb8020
children 5dda4da58939 9f889c7b053b
files tools/xfrd/xen_domain.c
line diff
     1.1 --- a/tools/xfrd/xen_domain.c	Tue Mar 29 00:59:32 2005 +0000
     1.2 +++ b/tools/xfrd/xen_domain.c	Tue Mar 29 08:05:47 2005 +0000
     1.3 @@ -177,7 +177,9 @@ static CURL *curlinit(void){
     1.4  /** Curl debug function.
     1.5   */
     1.6  int curldebug(CURL *curl, curl_infotype ty, char *buf, size_t buf_n, void *data){
     1.7 -    printf("%*s\n", buf_n, buf);
     1.8 +    // printf("%*s\n", buf_n, buf); /* Does not compile correctly on non 32bit platforms */
     1.9 +    fwrite(data, buf_n, 1, stdout);
    1.10 +    printf("\n");
    1.11      return 0;
    1.12  }
    1.13