changeset 3232:cf460a8c859c

[gaim-migrate @ 3249] Changed fprintf(stderr, ...)'s to debug_printf()'s. Sorry 'bout that. committer: Tailor Script <tailor@pidgin.im>
author Jim Seymour <jseymour>
date Tue, 07 May 2002 23:41:30 +0000
parents b913fc07e18a
children 96e215745dc0
files src/util.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Tue May 07 23:13:20 2002 +0000
+++ b/src/util.c	Tue May 07 23:41:30 2002 +0000
@@ -1287,7 +1287,7 @@
 
 	if(!tmpdir) {
 		if((tmpdir = tempnam(NULL, NULL)) == NULL) {
-			fprintf(stderr, "tempnam() failed, error: %d\n", errno);
+			debug_printf("Error: tempnam() failed, error: %d\n", errno);
 		} else {
 			char *t = strrchr(tmpdir, '/');
 			*t = '\0';
@@ -1297,11 +1297,11 @@
 	if(tmpdir) {
 		if((*fpath = g_strdup_printf("%s/%s", tmpdir, gaim_mkstemp_templ)) != NULL) {
 			if((fd = mkstemp(*fpath)) == -1) {
-				fprintf(stderr, "Couldn't make \"%s\", error: %d\n", *fpath, errno);
+				debug_printf("Error: Couldn't make \"%s\", error: %d\n", *fpath, errno);
 			} else {
 				if((fp = fdopen(fd, "r+")) == NULL) {
 					close(fd);
-					fprintf(stderr, "Couldn't fdopen(), error: %d\n", errno);
+					debug_printf("Error: Couldn't fdopen(), error: %d\n", errno);
 				}
 			}
 			if(!fp) {