Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/plugins


Modified Files:
        Makefile.am evfs_fs_posix.c evfs_fs_samba.c 


Log Message:
* Remove debug messages
* Handle different samba version


===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/plugins/Makefile.am,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- Makefile.am 12 Oct 2005 00:29:15 -0000      1.5
+++ Makefile.am 17 Oct 2005 10:57:30 -0000      1.6
@@ -8,7 +8,7 @@
 
 POSIX_L = posix.la
 
-if BUILD_SAMBA
+if HAVE_SAMBA
 SAMBA_L = samba.la
 else
 SAMBA_L =
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/plugins/evfs_fs_posix.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- evfs_fs_posix.c     16 Oct 2005 10:09:05 -0000      1.13
+++ evfs_fs_posix.c     17 Oct 2005 10:57:30 -0000      1.14
@@ -306,7 +306,7 @@
 }
 
 int evfs_file_seek(evfs_filereference* file, long offset, int whence) {
-       printf ("Seek in file '%s' forward by '%d'\n", file->path, offset);
+       /*printf ("Seek in file '%s' forward by '%d'\n", file->path, offset);*/
 
        lseek(file->fd, offset, SEEK_SET);
 
@@ -316,7 +316,7 @@
 int evfs_file_read(evfs_filereference* file, char* bytes, long size) {
        int bytes_read;
        
-       printf("Reading %d bytes from %s\n", size, file->path);
+       /*printf("Reading %d bytes from %s\n", size, file->path);*/
        
        bytes_read = read(file->fd, bytes, size);
 
@@ -334,11 +334,11 @@
 int evfs_file_write(evfs_filereference* file, char* bytes, long size) {
        ssize_t i;
        
-       printf("Writing %d bytes for %s\n", size, file->path);
+       /*printf("Writing %d bytes for %s\n", size, file->path);*/
        
 
        i = write(file->fd, bytes, size);
-       printf("Wrote %d bytes\n", i);
+       /*printf("Wrote %d bytes\n", i);*/
 
        return 0;
 }
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/plugins/evfs_fs_samba.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- evfs_fs_samba.c     17 Oct 2005 00:19:15 -0000      1.10
+++ evfs_fs_samba.c     17 Oct 2005 10:57:30 -0000      1.11
@@ -223,7 +223,11 @@
 int evfs_file_close(evfs_filereference* file) {
        printf ("SMB close: closing\n");
 
-       smb_context->close_fn(smb_context, file->fd_p);
+       #ifdef HAVE_SAMBA_OLD_CLOSE
+               smb_context->close(smb_context, file->fd_p);
+       #else
+               smb_context->close_fn(smb_context, file->fd_p);
+       #endif
 
        return 0;
 }
@@ -231,16 +235,16 @@
 int evfs_file_write(evfs_filereference* file, char* bytes, long size) {
        ssize_t i;
        
-       printf ("SMB write: %d bytes\n", size);
+       /*printf ("SMB write: %d bytes\n", size);*/
 
        i = smb_context->write(smb_context, file->fd_p, bytes, size);
-       printf("Wrote %d bytes\n", i);
+       /*printf("Wrote %d bytes\n", i);*/
 
        return 0;
 }
 
 int evfs_file_seek(evfs_filereference* file, long pos, int whence) {
-       printf ("Seeking file to %ld\n", pos);
+       //printf ("Seeking file to %ld\n", pos);
 
        smb_context->lseek(smb_context, file->fd_p, pos, SEEK_SET);
 
@@ -249,7 +253,7 @@
 
 int evfs_file_read(evfs_filereference* file, char* bytes, long size) {
        int bytes_read = 0;
-       printf("Reading %ld bytes from file %s\n", size, file->path);
+       /*printf("Reading %ld bytes from file %s\n", size, file->path);*/
        
        bytes_read = smb_context->read(smb_context, file->fd_p, bytes, size);
 




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to