[syslinux:firmware] Debug prints to core/fs/fs.c and core/fs/fat. c have been added.

syslinux-bot for Chandramouli Narayanan chandramouli.narayanan at intel.com
Fri Nov 9 09:06:27 PST 2012


Commit-ID:  cc786fff23b268e5681d32fc21b6404ae7465c12
Gitweb:     http://www.syslinux.org/commit/cc786fff23b268e5681d32fc21b6404ae7465c12
Author:     Chandramouli Narayanan <chandramouli.narayanan at intel.com>
AuthorDate: Sat, 1 Sep 2012 07:13:10 -0700
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Tue, 4 Sep 2012 18:49:39 +0100

Debug prints to core/fs/fs.c and core/fs/fat.c have been added.

Signed-off-by: Chandramouli Narayanan <chandramouli.narayanan at intel.com>
Signed-off-by: Matt Fleming <matt.fleming at intel.com>

---
 core/fs/fat/fat.c |    3 ++-
 core/fs/fs.c      |    1 +
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/core/fs/fat/fat.c b/core/fs/fat/fat.c
index b2c20ee..d7346ae 100644
--- a/core/fs/fat/fat.c
+++ b/core/fs/fat/fat.c
@@ -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++;
diff --git a/core/fs/fs.c b/core/fs/fs.c
index d8abaa6..997eadb 100644
--- a/core/fs/fs.c
+++ b/core/fs/fs.c
@@ -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)


More information about the Syslinux-commits mailing list