From 0033f808c5eb49de020b45d22d5bda19ccb3fccb Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 10 Sep 2010 01:02:56 +0000 Subject: [PATCH] Avoid a couple warnings when compiled in debugging mode --- src/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/init.c b/src/init.c index 5d54b2a..cc3ba7e 100644 --- a/src/init.c +++ b/src/init.c @@ -1,5 +1,5 @@ /* $Id$ */ -/* Copyright (c) 2009 Pierre Pronchery */ +/* Copyright (c) 2010 Pierre Pronchery */ /* This file is part of DeforaOS System Init */ /* 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 @@ -81,7 +81,7 @@ void init_delete(Init * init) int Init_get_profile(String ** profile) { #ifdef DEBUG - fprintf(stderr, "DEBUG: %s(%p)\n", __func__, profile); + fprintf(stderr, "DEBUG: %s(%p)\n", __func__, (void*)profile); #endif /* FIXME implement */ return -1; @@ -92,7 +92,7 @@ int Init_get_profile(String ** profile) uint16_t Init_get_session(String const * session) { #ifdef DEBUG - fprintf(stderr, "DEBUG: %s(%p)\n", __func__, session); + fprintf(stderr, "DEBUG: %s(\"%s\")\n", __func__, session); #endif /* FIXME really implement */ if(string_compare(session, "Init") == 0)