Changeset 5ad24f1
- Timestamp:
- Aug 5, 2017, 10:54:29 PM (7 years ago)
- Children:
- 8f3eac3
- Parents:
- 8eb72d2
- git-author:
- Jason Gross <jgross@mit.edu> (05/26/13 12:40:04)
- git-committer:
- Jason Gross <jgross@mit.edu> (08/05/17 22:54:29)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
logging.c
r7dcef03 r5ad24f1 151 151 } 152 152 153 static void owl_log_error(const char *message) 154 { 155 char *data = g_strdup(message); 153 static void G_GNUC_PRINTF(1, 2) owl_log_error(const char *fmt, ...) 154 { 155 va_list ap; 156 char *data; 157 158 va_start(ap, fmt); 159 data = g_strdup_vprintf(fmt, ap); 160 va_end(ap); 161 156 162 owl_select_post_task(owl_log_error_main_thread, 157 163 data, g_free, g_main_context_default()); 158 164 } 159 165 … … 164 170 file = fopen(msg->filename, "a"); 165 171 if (!file) { 166 owl_log_error("Unable to open file for logging ");172 owl_log_error("Unable to open file for logging (%s)", msg->filename); 167 173 return; 168 174 }
Note: See TracChangeset
for help on using the changeset viewer.