log: common logging method definition for all testers and helpers

This commit is contained in:
Aleksander Morgado
2020-04-08 15:13:53 +02:00
parent f1e930d574
commit e956bac47b
29 changed files with 80 additions and 558 deletions

View File

@@ -22,7 +22,7 @@
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-log.h"
#include "mm-log-test.h"
#include "mm-modem-helpers.h"
#include "mm-modem-helpers-sierra.h"
@@ -115,27 +115,6 @@ test_scact_read_response_multiple (void)
/*****************************************************************************/
void
_mm_log (gpointer obj,
const char *loc,
const char *func,
guint32 level,
const char *fmt,
...)
{
va_list args;
gchar *msg;
if (!g_test_verbose ())
return;
va_start (args, fmt);
msg = g_strdup_vprintf (fmt, args);
va_end (args);
g_print ("%s\n", msg);
g_free (msg);
}
int main (int argc, char **argv)
{
setlocale (LC_ALL, "");