diff options
author | Joel Stanley <joel@jms.id.au> | 2014-08-14 18:24:45 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-08-15 13:03:08 +1000 |
commit | 8058a51e2d17055cc68ca4c96c69269fdf9e9016 (patch) | |
tree | 3cfd9f7b7b8ca4af5e5e576505e63f6968158c0e /core/test/stubs.c | |
parent | 9f64cb2028f8612daa8556cc4831b9b7ce91b171 (diff) | |
download | skiboot-8058a51e2d17055cc68ca4c96c69269fdf9e9016.zip skiboot-8058a51e2d17055cc68ca4c96c69269fdf9e9016.tar.gz skiboot-8058a51e2d17055cc68ca4c96c69269fdf9e9016.tar.bz2 |
{core,hdata}/test: Add prlog to stub
We are missing a prlog for tests. This adds a dumb version that ignores
the log level and uses printf to display all messages.
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'core/test/stubs.c')
-rw-r--r-- | core/test/stubs.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/core/test/stubs.c b/core/test/stubs.c index 3233455..57c5917 100644 --- a/core/test/stubs.c +++ b/core/test/stubs.c @@ -13,9 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -/* Add any stub functions required for linking here. */ #include <stdlib.h> +#include <stdio.h> +#include <stdarg.h> + +void prlog(int log_level __attribute__((unused)), char *fmt, ...) +{ + va_list ap; + va_start(ap, fmt); + vprintf(fmt, ap); + va_end(ap); +} + +/* Add any stub functions required for linking here. */ static void stub_function(void) { abort(); |