diff options
author | Shaun Ruffell <sruffell@digium.com> | 2014-09-03 17:35:52 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2014-09-03 17:35:52 +0000 |
commit | 19e5621b53930e912b17d4a81e943ee6cf49f9ad (patch) | |
tree | 40a5a2294c4deb8baa63111402a3ac703a8b2602 /drivers/dahdi/xpp/dahdi_debug.c | |
parent | 9df2805ef9a14d731fcaa1325b6b1054c1f2c101 (diff) |
Point people to where active development is taking placesvn_trunk
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10748 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/dahdi_debug.c')
-rw-r--r-- | drivers/dahdi/xpp/dahdi_debug.c | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/drivers/dahdi/xpp/dahdi_debug.c b/drivers/dahdi/xpp/dahdi_debug.c deleted file mode 100644 index ce93b16..0000000 --- a/drivers/dahdi/xpp/dahdi_debug.c +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Written by Oron Peled <oron@actcom.co.il> - * Copyright (C) 2004-2006, Xorcom - * - * All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * 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, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - */ -#include <linux/version.h> -#include <linux/kernel.h> -#include <linux/errno.h> -#include <linux/module.h> -#include <dahdi/kernel.h> -#include "dahdi_debug.h" -#include "xdefs.h" - -static const char rcsid[] = "$Id$"; - -#define P_(x) [ x ] = { .value = x, .name = #x, } -static struct { - int value; - char *name; -} poll_names[] = { - P_(POLLIN), P_(POLLPRI), P_(POLLOUT), P_(POLLERR), P_(POLLHUP), - P_(POLLNVAL), P_(POLLRDNORM), P_(POLLRDBAND), P_(POLLWRNORM), - P_(POLLWRBAND), P_(POLLMSG), P_(POLLREMOVE) -}; - -#undef P_ - -void dump_poll(int debug, const char *msg, int poll) -{ - int i; - - for (i = 0; i < ARRAY_SIZE(poll_names); i++) { - if (poll & poll_names[i].value) - DBG(GENERAL, "%s: %s\n", msg, poll_names[i].name); - } -} -EXPORT_SYMBOL(dump_poll); - -void alarm2str(int alarm, char *buf, int buflen) -{ - char *p = buf; - int left = buflen; - int i; - int n; - - if (!alarm) { - snprintf(buf, buflen, "NONE"); - return; - } - memset(buf, 0, buflen); - for (i = 0; i < 8; i++) { - if (left && (alarm & BIT(i))) { - n = snprintf(p, left, "%s,", alarmbit2str(i)); - p += n; - left -= n; - } - } - if (p > buf) /* kill last comma */ - *(p - 1) = '\0'; -} -EXPORT_SYMBOL(alarm2str); |