aboutsummaryrefslogtreecommitdiffstats
path: root/com32/rosh
diff options
context:
space:
mode:
authorLiu Aleaxander <Aleaxander@gmail.com>2009-08-11 14:16:23 +0800
committerLiu Aleaxander <Aleaxander@gmail.com>2009-08-11 14:16:23 +0800
commitdb6bc6f4eb6a10fd4af96c5068d651ad4aca95aa (patch)
treee4bea949b95f652073f8ccf4882706f3fe7fd3ba /com32/rosh
parent5d7d50a01de8282a0e910beb0a9f151e526dcb62 (diff)
downloadsyslinux-db6bc6f4eb6a10fd4af96c5068d651ad4aca95aa.tar.gz
syslinux-db6bc6f4eb6a10fd4af96c5068d651ad4aca95aa.tar.xz
syslinux-db6bc6f4eb6a10fd4af96c5068d651ad4aca95aa.zip
Core:SYSLINUX: fix the vfat_searchdir
This makes the searchdir can find a dir; it's also prepared for the readdir function used in rosh Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
Diffstat (limited to 'com32/rosh')
-rw-r--r--com32/rosh/rosh.c2
-rw-r--r--com32/rosh/rosh.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/com32/rosh/rosh.c b/com32/rosh/rosh.c
index 9a4edae2..fe37d727 100644
--- a/com32/rosh/rosh.c
+++ b/com32/rosh/rosh.c
@@ -428,7 +428,7 @@ void rosh_dir_arg(const char *ifilstr, const char *pwdstr)
filepos = 0;
d = opendir(filestr);
if (d != NULL) {
- printf("DIR:'%s' %8d %8d\n", d->dd_name, d->dd_fd,
+ printf("DIR:'%s' %08x %8d\n", d->dd_name, d->dd_fd,
d->dd_sect);
de = readdir(d);
while (de != NULL) {
diff --git a/com32/rosh/rosh.h b/com32/rosh/rosh.h
index 64b0564c..0c41bac9 100644
--- a/com32/rosh/rosh.h
+++ b/com32/rosh/rosh.h
@@ -47,6 +47,8 @@
#error SYSLINUX (I believe) requires __GNUC__
#endif /* __GNUC__ */
+#define DO_DEBUG 1
+
#ifdef DO_DEBUG
#define ROSH_DEBUG(f, ...) printf (f, ## __VA_ARGS__)
#ifdef DO_DEBUG2