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] Use fwrite() to write variable string in xfrd, to make i

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Use fwrite() to write variable string in xfrd, to make it 64-bit safe.
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Tue, 29 Mar 2005 08:05:47 +0000
Delivery-date: Tue, 29 Mar 2005 09:03:30 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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 Development List <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1159.256.76, 2005/03/29 09:05:47+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        Use fwrite() to write variable string in xfrd, to make it 64-bit safe.
        Signed-off-by: Jerone Young <jyoung5@xxxxxxxxxx>
        Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>



 xen_domain.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)


diff -Nru a/tools/xfrd/xen_domain.c b/tools/xfrd/xen_domain.c
--- a/tools/xfrd/xen_domain.c   2005-03-29 04:03:27 -05:00
+++ b/tools/xfrd/xen_domain.c   2005-03-29 04:03:27 -05:00
@@ -177,7 +177,9 @@
 /** Curl debug function.
  */
 int curldebug(CURL *curl, curl_infotype ty, char *buf, size_t buf_n, void 
*data){
-    printf("%*s\n", buf_n, buf);
+    // printf("%*s\n", buf_n, buf); /* Does not compile correctly on non 32bit 
platforms */
+    fwrite(data, buf_n, 1, stdout);
+    printf("\n");
     return 0;
 }
 

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

<Prev in Thread] Current Thread [Next in Thread>