From 7958ce62d6ae127ee9b8664c8afae5754063389f Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Fri, 5 Dec 2003 15:54:56 +0000 Subject: cleanup phase II. use xprintf when it's relevant, use xine_xmalloc when it's relevant too. Small other little fix (can't remember). Change few internal function prototype because it xine_t pointer need to be used if some xine's internal sections. NOTE: libdvd{nav,read} is still too noisy, i will take a look to made it quit, without invasive changes. To be continued... CVS patchset: 5844 CVS date: 2003/12/05 15:54:56 --- src/xine-engine/configfile.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/xine-engine/configfile.c') diff --git a/src/xine-engine/configfile.c b/src/xine-engine/configfile.c index 823e9cab9..80cd57641 100644 --- a/src/xine-engine/configfile.c +++ b/src/xine-engine/configfile.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: configfile.c,v 1.57 2003/11/26 19:43:38 f1rmb Exp $ + * $Id: configfile.c,v 1.58 2003/12/05 15:55:04 f1rmb Exp $ * * config object (was: file) management - implementation * @@ -673,7 +673,7 @@ void xine_config_load (xine_t *xine, const char *filename) { sscanf(line + 9, "%d", &this->current_version); if (this->current_version > CONFIG_FILE_VERSION) xine_log(xine, XINE_LOG_MSG, - _("The current config file has been modified by a newer version of xine.")); + _("The current config file has been modified by a newer version of xine.")); } continue; } @@ -763,8 +763,8 @@ void xine_config_save (xine_t *xine, const char *filename) { } if (!backup && (stat(filename, &config_stat) == 0)) { - printf("configfile: WARNING: backing up configfile to %s failed\n", temp); - printf("configfile: WARNING: your configuration will not be saved\n"); + xprintf(xine, XINE_VERBOSITY_LOG, _("configfile: WARNING: backing up configfile to %s failed\n"), temp); + xprintf(xine, XINE_VERBOSITY_LOG, _("configfile: WARNING: your configuration will not be saved\n")); return; } @@ -859,9 +859,9 @@ void xine_config_save (xine_t *xine, const char *filename) { pthread_mutex_unlock(&this->config_lock); if (fclose(f_config) != 0) { - printf("configfile: WARNING: writing configuration to %s failed\n", filename); - printf("configfile: WARNING: removing possibly broken config file %s\n", filename); - printf("configfile: WARNING: you should check the backup file %s\n", temp); + xprintf(xine, XINE_VERBOSITY_LOG, _("configfile: WARNING: writing configuration to %s failed\n"), filename); + xprintf(xine, XINE_VERBOSITY_LOG, _("configfile: WARNING: removing possibly broken config file %s\n"), filename); + xprintf(xine, XINE_VERBOSITY_LOG, _("configfile: WARNING: you should check the backup file %s\n"), temp); /* writing config failed -> remove file, it might be broken ... */ unlink(filename); /* ... but keep the backup */ -- cgit v1.2.3