diff options
author | Joseph Herlant <aerostitch@users.noreply.github.com> | 2018-04-26 10:12:26 -0700 |
---|---|---|
committer | jkoan <jkoan@users.noreply.github.com> | 2018-04-26 19:12:26 +0200 |
commit | 221f783ea1caaaab2f5ceadc6b0fb3e720aac3df (patch) | |
tree | 1ecf89faa1dfa550477669b05ef5c36e9864f68a /navit/script.c | |
parent | 011bb15468b4cb626e9facecba924b04bd494d7f (diff) | |
download | navit-221f783ea1caaaab2f5ceadc6b0fb3e720aac3df.tar.gz |
Fix:debug:Change line separators for dbg to work also on win* platform (#546)
* Fix:debug:Change line separators for dbg to work also on win* platform
* Fix:debug:Break multiline dbg statements to use the new model
* Fix:debug:Move the EOL into debug_vprintf
Diffstat (limited to 'navit/script.c')
-rw-r--r-- | navit/script.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/navit/script.c b/navit/script.c index 2c6719cdc..e0e05e4be 100644 --- a/navit/script.c +++ b/navit/script.c @@ -40,10 +40,10 @@ script_run(struct script *scr) struct attr *xml_text=attr_search(scr->attrs, NULL, attr_xml_text); int error; if (!xml_text || !xml_text->u.str) { - dbg(lvl_error,"no text\n"); + dbg(lvl_error,"no text"); return; } - dbg(lvl_debug,"running '%s'\n",xml_text->u.str); + dbg(lvl_debug,"running '%s'",xml_text->u.str); command_evaluate_to_void(&scr->parent, xml_text->u.str, &error); } @@ -52,7 +52,7 @@ script_set_attr_int(struct script *scr, struct attr *attr) { switch (attr->type) { case attr_refresh_cond: - dbg(lvl_debug,"refresh_cond\n"); + dbg(lvl_debug,"refresh_cond"); if (scr->cs) command_saved_destroy(scr->cs); scr->cs=command_saved_attr_new(attr->u.str, &scr->parent, scr->cb, 0); @@ -79,14 +79,14 @@ script_new(struct attr *parent, struct attr **attrs) scr->parent=*parent; while (attrs && *attrs) script_set_attr_int(scr, *attrs++); - dbg(lvl_debug,"return %p\n",scr); + dbg(lvl_debug,"return %p",scr); return scr; } static void script_destroy(struct script *scr) { - dbg(lvl_debug,"enter %p\n",scr); + dbg(lvl_debug,"enter %p",scr); if (scr->timeout) event_remove_timeout(scr->timeout); if (scr->cs) |