]> xenbits.xensource.com Git - xen.git/commitdiff
Revert "DEBUG PRINTFS"
authorWei Liu <wei.liu2@citrix.com>
Wed, 11 Oct 2017 14:03:01 +0000 (15:03 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 11 Oct 2017 14:03:01 +0000 (15:03 +0100)
This reverts commit cf8e5f25a940928550e69b543ed67df1d73f7b09.

It is not supposed to be committed.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
tools/libs/call/linux.c
tools/libs/devicemodel/core.c
tools/libs/devicemodel/linux.c
tools/libs/evtchn/linux.c
tools/libs/foreignmemory/core.c
tools/libs/foreignmemory/linux.c
tools/libs/gnttab/linux.c

index 60531a0aad2352d2246ebf43e6742ba657a750fa..3f1b691fe77cd80cacd265e7e0ae2f53eda80ded 100644 (file)
@@ -42,13 +42,11 @@ int osdep_xencall_open(xencall_handle *xcall)
      * Prefer the newer interface.
      */
     fd = open("/dev/xen/privcmd", O_RDWR|O_CLOEXEC);
-fprintf(stderr,"osdep_xencall_open /dev fd=%d e=%d\n",fd,errno);
 
     if ( fd == -1 && ( errno == ENOENT || errno == ENXIO || errno == ENODEV ))
     {
         /* Fallback to /proc/xen/privcmd */
         fd = open("/proc/xen/privcmd", O_RDWR|O_CLOEXEC);
-fprintf(stderr,"osdep_xencall_open /proc fd=%d e=%d\n",fd,errno);
     }
 
     if ( fd == -1 )
index e93ba55a548dc7db365a9b613721e72fe36ef80f..b66d4f92948757a84b2b45e01b571b9c3c1e038b 100644 (file)
@@ -566,9 +566,7 @@ int xendevicemodel_shutdown(
 
 int xendevicemodel_restrict(xendevicemodel_handle *dmod, domid_t domid)
 {
-    int r = osdep_xendevicemodel_restrict(dmod, domid);
-fprintf(stderr, "xendevicemodel_restrict r=%d e=%d\n",r,errno);
-    return r;
+    return osdep_xendevicemodel_restrict(dmod, domid);
 }
 
 /*
index 9612ca2fd90c938e2662dfe4e2f93526afda7c31..0fdc7121f1eb7707f1f330577c9f4a2c948199f9 100644 (file)
@@ -53,7 +53,6 @@ int osdep_xendevicemodel_open(xendevicemodel_handle *dmod)
         PERROR("Could not obtain handle on privileged command interface");
         return -1;
     }
-fprintf(stderr,"osdep_xendevicemodel_open fd=%d\n",fd);
 
     /*
      * Check to see if IOCTL_PRIVCMD_DM_OP is implemented as we want to
@@ -68,7 +67,6 @@ fprintf(stderr,"osdep_xendevicemodel_open fd=%d\n",fd);
         close(fd);
         fd = -1;
     }
-fprintf(stderr,"osdep_xendevicemodel_open fd=%d after IOCTL_PRIVCMD_DM_OP\n",fd);
 
 out:
     dmod->fd = fd;
@@ -121,8 +119,6 @@ int osdep_xendevicemodel_op(xendevicemodel_handle *dmod,
 int osdep_xendevicemodel_restrict(xendevicemodel_handle *dmod,
                                   domid_t domid)
 {
-fprintf(stderr, "osdep_xendevicemodel_restrict fd=%d\n",dmod->fd);
-
     if (dmod->fd < 0) {
         errno = EOPNOTSUPP;
         return -1;
index c43909b1ebce04b6050df1c74dad514a79ac3c5b..a581c5d316765c92008e51bd096f56cb92fe7dd4 100644 (file)
@@ -38,7 +38,6 @@ int osdep_evtchn_open(xenevtchn_handle *xce)
     if ( fd == -1 )
         return -1;
     xce->fd = fd;
-fprintf(stderr,"osdep_evtchn_open fd=%d\n",fd);
     return 0;
 }
 
index 6d438a22c76493d35f6b0f8546bc9f534c30bb7f..79b24d273b738f9d66eeac4ec0172956f761d299 100644 (file)
@@ -132,9 +132,7 @@ int xenforeignmemory_unmap(xenforeignmemory_handle *fmem,
 int xenforeignmemory_restrict(xenforeignmemory_handle *fmem,
                               domid_t domid)
 {
-    int r = osdep_xenforeignmemory_restrict(fmem, domid);
-fprintf(stderr, "xenforeignmemory_restrict r=%d e=%d\n",r,errno);
-    return r;
+    return osdep_xenforeignmemory_restrict(fmem, domid);
 }
 
 /*
index 1f41cd6ba0409f8b8e746f89d83b0247978c673d..374e45aed5c17dec16b032dbd0ee8a28ff1d5d3e 100644 (file)
@@ -40,7 +40,6 @@ int osdep_xenforeignmemory_open(xenforeignmemory_handle *fmem)
 
     /* prefer this newer interface */
     fd = open("/dev/xen/privcmd", O_RDWR|O_CLOEXEC);
-fprintf(stderr,"osdep_xenforeignmemory_open fd=%d\n",fd);
 
     if ( fd == -1 && ( errno == ENOENT || errno == ENXIO || errno == ENODEV ))
     {
@@ -275,7 +274,6 @@ int osdep_xenforeignmemory_unmap(xenforeignmemory_handle *fmem,
 int osdep_xenforeignmemory_restrict(xenforeignmemory_handle *fmem,
                                     domid_t domid)
 {
-fprintf(stderr, "osdep_xenforeignmemory_restrict\n");
     return ioctl(fmem->fd, IOCTL_PRIVCMD_RESTRICT, &domid);
 }
 
index ab139f4a26d17840e3fa9570c16e1556a2ff6fb8..8347ddd3d9cf0e1755624e02ee813873c06ad3ae 100644 (file)
@@ -51,7 +51,6 @@ int osdep_gnttab_open(xengnttab_handle *xgt)
     if ( fd == -1 )
         return -1;
     xgt->fd = fd;
-fprintf(stderr,"osdep_gnttab_open fd=%d\n",fd);
     return 0;
 }