diff options
author | Dan Williams <dcbw@redhat.com> | 2019-04-02 11:17:21 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2019-04-02 11:20:11 -0500 |
commit | 1c14ca7262403ef6dc30319e3dc2aaa3ba47a225 (patch) | |
tree | f0274e750829c32609fe431e3b7916154bf31a05 /libwmc/src/errors.c | |
parent | 88fac7f14a8898a7856a6868bbd94d4cf576723a (diff) |
libwmc: remove it
The WMC protocol was only present on older Panasonic/Verizon devices
from the 2006 - 2011 timeframe. The last device to support WMC was
the UML290 which also supported QMI (which is much more functional).
ModemManager also never used WMC support and it was never significantly
reverse engineered.
So remove WMC code from git; it'll still be in the history if anyone
cares in the future.
Diffstat (limited to 'libwmc/src/errors.c')
-rw-r--r-- | libwmc/src/errors.c | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/libwmc/src/errors.c b/libwmc/src/errors.c deleted file mode 100644 index 0403b229..00000000 --- a/libwmc/src/errors.c +++ /dev/null @@ -1,58 +0,0 @@ -/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * Copyright (C) 2011 Red Hat, Inc. - * - * This program is free software: you can redistribute it and/or - * modify it under the terms of version 2 of the GNU General Public - * License as published by the Free Software Foundation - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#include "errors.h" -#include <stdlib.h> -#include <string.h> - -void -_wmc_log (const char *file, - int line, - const char *func, - int level, - int domain, - const char *format, - ...) -{ - va_list args; - char *message = NULL; - int n; - const char *prefix = "info"; - - wmc_return_if_fail (format != NULL); - wmc_return_if_fail (format[0] != '\0'); - - /* level & domain ignored for now */ - - if (getenv ("WMC_DEBUG") == NULL) - return; - - va_start (args, format); - n = vasprintf (&message, format, args); - va_end (args); - - if (level & LOGL_ERR) - prefix = "err"; - else if (level & LOGL_DEBUG) - prefix = "dbg"; - - if (n >= 0) { - fprintf (stderr, "<%s> [%s:%u] %s(): %s\n", prefix, file, line, func, message); - free (message); - } -} - |