aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandramouli Narayanan <chandramouli.narayanan@intel.com>2012-09-01 07:13:10 -0700
committerMatt Fleming <matt.fleming@intel.com>2012-09-04 18:49:39 +0100
commitcc786fff23b268e5681d32fc21b6404ae7465c12 (patch)
treeb6eb383ee7f4b55711bf973fb00565a89b19e11d
parentd1e4387577da5a5bc291a112aa51da6f8f1869cc (diff)
downloadsyslinux-cc786fff23b268e5681d32fc21b6404ae7465c12.tar.gz
syslinux-cc786fff23b268e5681d32fc21b6404ae7465c12.tar.xz
syslinux-cc786fff23b268e5681d32fc21b6404ae7465c12.zip
Debug prints to core/fs/fs.c and core/fs/fat.c have been added.
Signed-off-by: Chandramouli Narayanan <chandramouli.narayanan@intel.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r--core/fs/fat/fat.c3
-rw-r--r--core/fs/fs.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/core/fs/fat/fat.c b/core/fs/fat/fat.c
index b2c20ee0..d7346ae1 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 d8abaa69..997eadba 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)