summaryrefslogtreecommitdiff
path: root/src/bin/eldbus
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-07-21 16:17:55 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-07-21 16:17:54 -0400
commit89e0d387dd9c22a0f70b0d3a7e436d1e81260f53 (patch)
tree9c156f8bf0cd8c28b14c2005e45b4ad6a708c31d /src/bin/eldbus
parent93bac8ce4a88064c430d55b34fa80bd914f2c2f9 (diff)
eldbus: print full filename when codegen write fails
Diffstat (limited to 'src/bin/eldbus')
-rw-r--r--src/bin/eldbus/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/eldbus/utils.c b/src/bin/eldbus/utils.c
index ae1f493..edfd06e 100644
--- a/src/bin/eldbus/utils.c
+++ b/src/bin/eldbus/utils.c
@@ -47,14 +47,14 @@ file_write(const char *file_name, const char *buffer)
47 file_handler = fopen(filename, "wt"); 47 file_handler = fopen(filename, "wt");
48 if (!file_handler) 48 if (!file_handler)
49 { 49 {
50 printf("Error to write file: %s\n", file_name); 50 printf("Error to write file: %s\n", filename);
51 eina_strbuf_free(fname); 51 eina_strbuf_free(fname);
52 return EINA_FALSE; 52 return EINA_FALSE;
53 } 53 }
54 54
55 if (fwrite(buffer, strlen(buffer), 1, file_handler) < 1) 55 if (fwrite(buffer, strlen(buffer), 1, file_handler) < 1)
56 { 56 {
57 printf("Error writing to file: %s\n", file_name); 57 printf("Error writing to file: %s\n", filename);
58 } 58 }
59 fclose(file_handler); 59 fclose(file_handler);
60 eina_strbuf_free(fname); 60 eina_strbuf_free(fname);