ia64/xen-unstable

changeset 1606:be911ab15381

bitkeeper revision 1.1023.1.5 (40e04b3dJy-6ybfWqJtenQTYsJOm9g)

Fix save argspec.
author mjw@wray-m-3.hpl.hp.com
date Mon Jun 28 16:45:49 2004 +0000 (2004-06-28)
parents 75dec051cc70
children 63fda094edbd cdccf1a15b0f 353e11fcd243
files tools/xc/py/Xc.c
line diff
     1.1 --- a/tools/xc/py/Xc.c	Mon Jun 28 16:21:02 2004 +0000
     1.2 +++ b/tools/xc/py/Xc.c	Mon Jun 28 16:45:49 2004 +0000
     1.3 @@ -197,6 +197,7 @@ static int file_save(XcObject *xc, XcIOC
     1.4      int open_flags = (O_CREAT | O_EXCL | O_WRONLY);
     1.5      int open_mode = 0644;
     1.6  
     1.7 +    printf("%s>\n", __FUNCTION__);
     1.8      fd = open(state_file, open_flags, open_mode);
     1.9      if(fd < 0){
    1.10          xcio_perror(ctxt, "Could not open file for writing");
    1.11 @@ -205,16 +206,19 @@ static int file_save(XcObject *xc, XcIOC
    1.12      /* Compression rate 1: we want speed over compression. 
    1.13       * We're mainly going for those zero pages, after all.
    1.14       */
    1.15 +    printf("%s>gzip_stream_fdopen... \n", __FUNCTION__);
    1.16      ctxt->io = gzip_stream_fdopen(fd, "wb1");
    1.17      if(!ctxt->io){
    1.18          xcio_perror(ctxt, "Could not allocate compression state");
    1.19          goto exit;
    1.20      }
    1.21 +    printf("%s> xc_linux_save...\n", __FUNCTION__);
    1.22      rc = xc_linux_save(xc->xc_handle, ctxt);
    1.23    exit:
    1.24      if(ctxt->io) IOStream_close(ctxt->io);
    1.25      if(fd >= 0) close(fd);
    1.26      unlink(state_file);
    1.27 +    printf("%s> rc=%d\n", __FUNCTION__, rc);
    1.28      return rc;
    1.29  }
    1.30  
    1.31 @@ -234,7 +238,7 @@ static PyObject *pyxc_linux_save(PyObjec
    1.32  
    1.33      static char *kwd_list[] = { "dom", "state_file", "vmconfig", "progress", "debug", NULL };
    1.34  
    1.35 -    if (!PyArg_ParseTupleAndKeywords(args, kwds, "is|siii", kwd_list, 
    1.36 +    if (!PyArg_ParseTupleAndKeywords(args, kwds, "is|sii", kwd_list, 
    1.37                                       &ioctxt.domain,
    1.38                                       &state_file,
    1.39                                       &ioctxt.vmconfig,