This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Minor fix to fatfs.c


I noticed 2 minor issues with fatfs when I compiled with tracing enabled. Attached is a patch.

Index: fs/fat/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/fat/current/ChangeLog,v
retrieving revision 1.5
diff -w -b -U5 -r1.5 ChangeLog
--- fs/fat/current/ChangeLog	26 Oct 2004 08:00:08 -0000	1.5
+++ fs/fat/current/ChangeLog	11 Nov 2004 15:26:17 -0000
@@ -1,5 +1,9 @@
+2004-11-11  David Brennan  <eCos@brennanhome.com>
+
+	* src/fatfs.c: fixed typos in TRACE statements
+
 2004-10-23  David Brennan  <eCos@brennanhome.com>
 
 	* tests/fileio1.c: fixed check for return value for attribute
 	tests.
 
Index: fs/fat/current/src/fatfs.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/fat/current/src/fatfs.c,v
retrieving revision 1.3
diff -w -b -U5 -r1.3 fatfs.c
--- fs/fat/current/src/fatfs.c	22 Oct 2004 14:10:23 -0000	1.3
+++ fs/fat/current/src/fatfs.c	11 Nov 2004 15:26:18 -0000
@@ -1033,11 +1033,11 @@
 {
     fatfs_disk_t      *disk = (fatfs_disk_t *) mte->data;
     fatfs_dirsearch_t  ds;
     int                err;
 
-    CYG_TRACE4(TFS, "chmod mte=%p dir=%p name='%s' buf=%x", 
+    CYG_TRACE4(TFS, "attrib mte=%p dir=%p name='%s' buf=%x", 
                     mte, dir, name, new_attrib);
 
     // Verify new_mode is valid
     if ((new_attrib & S_FATFS_ATTRIB) != new_attrib)
         return EINVAL;
@@ -1067,12 +1067,12 @@
 {
     fatfs_disk_t      *disk = (fatfs_disk_t *) mte->data;
     fatfs_dirsearch_t  ds;
     int                err;
 
-    CYG_TRACE4(TFS, "chmod mte=%p dir=%p name='%s' buf=%x", 
-                    mte, dir, name, new_attrib);
+    CYG_TRACE4(TFS, "attrib mte=%p dir=%p name='%s' buf=%x", 
+                    mte, dir, name, file_attrib);
 
     init_dirsearch(&ds, disk, (fatfs_node_t *) dir, name);
 
     err = fatfs_find(&ds);
     if (err != ENOERR)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]