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-devel

[Xen-devel] [PATCH] Fix minios bug/build problem introduced in c/s 22799

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Fix minios bug/build problem introduced in c/s 22799
From: John Weekes <lists.xen@xxxxxxxxxxxxxxxxxx>
Date: Wed, 26 Jan 2011 13:17:40 -0800
Delivery-date: Wed, 26 Jan 2011 13:19:07 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
With "debug=n", "make stubdom" currently fails in xen-unstable. This patch 
addresses this through minor fixups.

Signed-off-by: John Weekes<lists.xen@xxxxxxxxxxxxxxxxxx>
Acked-by: Stefano Stabellini<stefano.stabellini@xxxxxxxxxxxxx>


diff -r b59f04eb8978 extras/mini-os/lib/sys.c
--- a/extras/mini-os/lib/sys.c  Fri Jan 21 18:06:23 2011 +0000
+++ b/extras/mini-os/lib/sys.c  Tue Jan 25 15:18:05 2011 -0500
@@ -178,10 +178,10 @@
     return(dev->fd);
 }

-int open_savefile(char *path, int save)
+int open_savefile(const char *path, int save)
 {
     struct consfront_dev *dev;
-    char *nodename[64];
+    char nodename[64];

     snprintf(nodename, sizeof(nodename), "device/console/%d", save ? 
SAVE_CONSOLE : RESTORE_CONSOLE);

@@ -286,7 +286,7 @@
                 while (nbytes>  0) {
                     ret = xencons_ring_send(files[fd].cons.dev, (char *)buf, 
nbytes);
                     nbytes -= ret;
-                    buf += ret;
+                    buf = (char *)buf + ret;
                 }
                 return tot - nbytes;
             }


Attachment: sys.patch
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix minios bug/build problem introduced in c/s 22799, John Weekes <=