Skip to content
Snippets Groups Projects
Commit 3dfe9818 authored by Mark Grondona's avatar Mark Grondona
Browse files

o small cleanup

parent e8e42d89
No related branches found
No related tags found
No related merge requests found
...@@ -16,23 +16,23 @@ int main(int ac, char **av) ...@@ -16,23 +16,23 @@ int main(int ac, char **av)
log_opts.stderr_level = LOG_LEVEL_DEBUG2; log_opts.stderr_level = LOG_LEVEL_DEBUG2;
/* test log to stderr when log not initialized */ /* test log to stderr when log not initialized */
error("test: log not initialized."); error("testing with unitialized log.");
/* now initialize log: */ /* now initialize log: */
log_init("log-test", log_opts, 0, NULL); log_init("log-test", log_opts, 0, NULL);
error ("error message"); error ("testing error");
info ("informational"); info ("testing info ");
verbose("verbose"); verbose("testing verbose");
debug ("debug level 1"); debug ("testing debug level 1");
debug2 ("debug level 2"); debug2 ("testing debug level 2");
debug3 ("ERROR: Should not see this."); debug3 ("ERROR: Should not see this.");
info ("testing print of null pointer: %p = %s", p, p); info ("testing print of null pointer: %p = %s", p, p);
info ("double: %18.7f int: %05i string `%s'", f, i, string); info ("testing double: %18.7f int: %05i string `%s'", f, i, string);
info ("unsigned: %u int: % 08d", u, negi); info ("testing unsigned: %u int: % 08d", u, negi);
/* for now, this test passes if we make it through without /* for now, this test passes if we make it through without
* dumping core * dumping core
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment