Debug prints to core/fs/fs.c and core/fs/fat.c have been added.
authorChandramouli Narayanan <chandramouli.narayanan@intel.com>
Sat, 1 Sep 2012 14:13:10 +0000 (07:13 -0700)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 4 Sep 2012 17:49:39 +0000 (18:49 +0100)
Signed-off-by: Chandramouli Narayanan <chandramouli.narayanan@intel.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
core/fs/fat/fat.c
core/fs/fs.c

index b2c20ee..d7346ae 100644 (file)
@@ -140,6 +140,7 @@ static int fat_next_extent(struct inode *inode, uint32_t lstart)
     return 0;
 
 err:
+    dprintf("fat_next_extent: return error\n");
     return -1;
 }
 
@@ -325,7 +326,7 @@ static bool vfat_match_longname(const char *str, const uint16_t *match,
     unsigned char c = -1;      /* Nonzero: we have not yet seen NUL */
     uint16_t cp;
 
-    dprintf("Matching: %s\n", str);
+    dprintf("Matching: %s len %d\n", str, len);
 
     while (len) {
        cp = *match++;
index d8abaa6..997eadb 100644 (file)
@@ -359,6 +359,7 @@ int searchdir(const char *name)
     return file_to_handle(file);
 
 err:
+    dprintf("serachdir: error seraching file %s\n", name);
     put_inode(inode);
     put_inode(parent);
     if (pathbuf)