Holger Freyther | c95546b | 2008-12-27 12:03:07 +0000 | [diff] [blame] | 1 | /* simple test for the debug interface */ |
| 2 | /* |
| 3 | * (C) 2008 by Holger Hans Peter Freyther <zecke@selfish.org> |
| 4 | * All Rights Reserved |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License along |
| 17 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 19 | * |
| 20 | */ |
| 21 | |
| 22 | #include <openbsc/debug.h> |
| 23 | |
| 24 | |
| 25 | int main(int argc, char** argv) |
| 26 | { |
Holger Freyther | 5b9c8c7 | 2008-12-27 12:46:49 +0000 | [diff] [blame] | 27 | debug_parse_category_mask("DRLL"); |
Holger Freyther | c95546b | 2008-12-27 12:03:07 +0000 | [diff] [blame] | 28 | DEBUGP(DCC, "You should not see this\n"); |
| 29 | |
Holger Freyther | 5b9c8c7 | 2008-12-27 12:46:49 +0000 | [diff] [blame] | 30 | debug_parse_category_mask("DRLL:DCC"); |
Holger Freyther | c95546b | 2008-12-27 12:03:07 +0000 | [diff] [blame] | 31 | DEBUGP(DRLL, "You should see this\n"); |
| 32 | DEBUGP(DCC, "You should see this\n"); |
| 33 | DEBUGP(DMM, "You should not see this\n"); |
| 34 | } |