projects
/
emu8051.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Memory window can now be edited
[emu8051.git]
/
src
/
app-config.c
diff --git
a/src/app-config.c
b/src/app-config.c
index
15bed2b
..
b61b900
100644
(file)
--- a/
src/app-config.c
+++ b/
src/app-config.c
@@
-62,17
+62,11
@@
app_config_key_file_get_int(GKeyFile *kf, const char *grp, const char *key, int
{
char *str = g_key_file_get_value(kf, grp, key, NULL);
{
char *str = g_key_file_get_value(kf, grp, key, NULL);
-#ifdef EMU8051_DEBUG
- printf("key: %s\n", key);
-#endif
+ log_debug("key: %s", key);
if (G_LIKELY(str)) {
*value = atoi(str);
if (G_LIKELY(str)) {
*value = atoi(str);
-
-#ifdef EMU8051_DEBUG
- printf(" value = %d\n", *value);
-#endif
-
+ log_debug(" value = %d", *value);
g_free(str);
}
g_free(str);
}
@@
-117,9
+111,7
@@
app_config_get_file_path(void)
file_path = g_build_filename(dir_path, file, NULL);
file_path = g_build_filename(dir_path, file, NULL);
-#ifdef EMU8051_DEBUG
- printf("app. config file = %s\n", file_path);
-#endif
+ log_info("app. config file = %s", file_path);
g_free(dir_path);
g_free(dir_path);