aboutsummaryrefslogtreecommitdiffstats
path: root/com32/menu
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-11-19 11:10:54 -0800
committerH. Peter Anvin <hpa@zytor.com>2009-11-19 11:10:54 -0800
commit96d7ea4c8a3132df0e2af64215b1386095346e84 (patch)
tree03a9e225f0ee5de3df1be068f36694f141b084a7 /com32/menu
parent709cdd1bfa7aace9c76016a15f55b3005b843cc8 (diff)
downloadsyslinux-96d7ea4c8a3132df0e2af64215b1386095346e84.tar.gz
syslinux-96d7ea4c8a3132df0e2af64215b1386095346e84.tar.xz
syslinux-96d7ea4c8a3132df0e2af64215b1386095346e84.zip
menu: debugging hooks
Add (disabled) debugging hooks to the menu system. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/menu')
-rw-r--r--com32/menu/menu.h3
-rw-r--r--com32/menu/readconfig.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/com32/menu/menu.h b/com32/menu/menu.h
index 1d7dee80..3be3ba01 100644
--- a/com32/menu/menu.h
+++ b/com32/menu/menu.h
@@ -28,6 +28,9 @@
#include <stdbool.h>
#include "refstr.h"
+/* #define DEBUG 1 */
+#include <dprintf.h>
+
#ifndef CLK_TCK
# define CLK_TCK sysconf(_SC_CLK_TCK)
#endif
diff --git a/com32/menu/readconfig.c b/com32/menu/readconfig.c
index 1aad5958..135769e1 100644
--- a/com32/menu/readconfig.c
+++ b/com32/menu/readconfig.c
@@ -959,7 +959,11 @@ static int parse_one_config(const char *filename)
if (!strcmp(filename, "~"))
filename = syslinux_config_file();
+ dprintf("Opening config file: %s ", filename);
+
f = fopen(filename, "r");
+ dprintf("%s\n", f ? "ok" : "failed");
+
if (!f)
return -1;