Magellan Linux

Diff of /trunk/mkinitrd-magellan/klibc/usr/kinit/nfsmount/mount.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 532 by niro, Sat Sep 1 22:45:15 2007 UTC revision 1122 by niro, Wed Aug 18 21:11:40 2010 UTC
# Line 93  static inline void dump_params(uint32_t Line 93  static inline void dump_params(uint32_t
93   (void)path;   (void)path;
94   (void)data;   (void)data;
95    
96  #ifdef NFS_DEBUG  #ifdef DEBUG
97   struct in_addr addr = { server };   struct in_addr addr = { server };
98    
99   printf("NFS params:\n");   printf("NFS params:\n");
# Line 121  static inline void dump_fh(const char *d Line 121  static inline void dump_fh(const char *d
121   (void)data;   (void)data;
122   (void)len;   (void)len;
123    
124  #ifdef NFS_DEBUG  #ifdef DEBUG
125   int i = 0;   int i = 0;
126   int max = len - (len % 8);   int max = len - (len % 8);
127    
# Line 187  static int mount_call(uint32_t proc, uin Line 187  static int mount_call(uint32_t proc, uin
187   }   }
188    
189   if (mnt_reply.status != 0) {   if (mnt_reply.status != 0) {
190   fprintf(stderr, "mount call failed: %d\n",   fprintf(stderr, "mount call failed - server replied: %s.\n",
191   ntohl(mnt_reply.status));   strerror(ntohl(mnt_reply.status)));
192   goto bail;   goto bail;
193   }   }
194    
# Line 329  int nfs_mount(const char *pathname, cons Line 329  int nfs_mount(const char *pathname, cons
329   goto bail;   goto bail;
330   }   }
331    
332   DEBUG(("Mounted %s on %s\n", pathname, path));   dprintf("Mounted %s on %s\n", pathname, path);
333    
334   goto done;   goto done;
335    

Legend:
Removed from v.532  
changed lines
  Added in v.1122