diff options
author | Dan Williams <dcbw@redhat.com> | 2011-01-23 20:51:48 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-01-23 20:51:48 -0600 |
commit | 16039244bb08cb4f62754c710be2052eaef32549 (patch) | |
tree | 689477732fdaf58c7e5b9f1774cd68519dcd896b /src/tests/test-modem-helpers.c | |
parent | f85b014d843ecb2259e9b2e21f44c24ff8ff5fdf (diff) |
core: rework logging
Make it more flexible, add logging to a file, and absolute and
relative timestamps.
Diffstat (limited to 'src/tests/test-modem-helpers.c')
-rw-r--r-- | src/tests/test-modem-helpers.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/tests/test-modem-helpers.c b/src/tests/test-modem-helpers.c index 038f1f14..946916ff 100644 --- a/src/tests/test-modem-helpers.c +++ b/src/tests/test-modem-helpers.c @@ -17,6 +17,7 @@ #include <string.h> #include "mm-modem-helpers.h" +#include "mm-log.h" typedef struct { GPtrArray *solicited_creg; @@ -1079,8 +1080,7 @@ test_devid_item (void *f, gpointer d) item->gsn, item->revision, item->model, - item->manf, - FALSE); + item->manf); g_assert (devid); if (strcmp (devid, item->devid)) g_message ("%s", devid); @@ -1178,6 +1178,15 @@ test_data_free (TestData *data) g_free (data); } +void +_mm_log (const char *loc, + const char *func, + guint32 level, + const char *fmt, + ...) +{ + /* Dummy log function */ +} #if GLIB_CHECK_VERSION(2,25,12) typedef GTestFixtureFunc TCFunc; |