Nico Huber | b0f8326 | 2014-01-01 20:47:55 +0100 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of uio_usbdebug |
| 3 | * |
| 4 | * Copyright (C) 2013 Nico Huber <nico.h@gmx.de> |
| 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; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
Nico Huber | b0f8326 | 2014-01-01 20:47:55 +0100 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #include <stdio.h> |
| 17 | #include <stdarg.h> |
| 18 | #include <console/console.h> |
| 19 | |
| 20 | int do_printk(int msg_level, const char *const fmt, ...) |
| 21 | { |
| 22 | va_list args; |
| 23 | int i; |
| 24 | |
| 25 | va_start(args, fmt); |
| 26 | i = vfprintf(stderr, fmt, args); |
| 27 | va_end(args); |
| 28 | |
| 29 | return i; |
| 30 | } |