comparison src/cache.c @ 673:fbebf5cf4a55

Do not use printf() directly but use new wrapper function log_printf() instead.
author zas_
date Fri, 16 May 2008 12:16:49 +0000
parents 8268cbe682f1
children a3218946bd2d
comparison
equal deleted inserted replaced
672:913eb0ba99a6 673:fbebf5cf4a55
156 ssi = secure_open(pathl); 156 ssi = secure_open(pathl);
157 g_free(pathl); 157 g_free(pathl);
158 158
159 if (!ssi) 159 if (!ssi)
160 { 160 {
161 printf("Unable to save sim cache data: %s\n", cd->path); 161 log_printf("Unable to save sim cache data: %s\n", cd->path);
162 return FALSE; 162 return FALSE;
163 } 163 }
164 164
165 secure_fprintf(ssi, "SIMcache\n#%s %s\n", PACKAGE, VERSION); 165 secure_fprintf(ssi, "SIMcache\n#%s %s\n", PACKAGE, VERSION);
166 cache_sim_write_dimensions(ssi, cd); 166 cache_sim_write_dimensions(ssi, cd);
604 if (!isdir(path)) 604 if (!isdir(path))
605 { 605 {
606 DEBUG_1("creating sub dir:%s", path); 606 DEBUG_1("creating sub dir:%s", path);
607 if (!mkdir_utf8(path, mode)) 607 if (!mkdir_utf8(path, mode))
608 { 608 {
609 printf("create dir failed: %s\n", path); 609 log_printf("create dir failed: %s\n", path);
610 return FALSE; 610 return FALSE;
611 } 611 }
612 } 612 }
613 if (!end) p[0] = '/'; 613 if (!end) p[0] = '/';
614 } 614 }