Changes in uspace/srv/logger/logs.c [38d150e:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/logger/logs.c
r38d150e rb7fd2a0 52 52 } 53 53 54 static int create_dest(const char *name, logger_dest_t **dest)54 static errno_t create_dest(const char *name, logger_dest_t **dest) 55 55 { 56 56 logger_dest_t *result = malloc(sizeof(logger_dest_t)); 57 57 if (result == NULL) 58 58 return ENOMEM; 59 int rc = asprintf(&result->filename, "/log/%s", name); 60 if (rc < 0) { 59 if (asprintf(&result->filename, "/log/%s", name) < 0) { 61 60 free(result); 62 61 return ENOMEM; … … 87 86 if (result->full_name == NULL) 88 87 goto error; 89 int rc = create_dest(name, &result->dest);88 errno_t rc = create_dest(name, &result->dest); 90 89 if (rc != EOK) 91 90 goto error; 92 91 } else { 93 int rc = asprintf(&result->full_name, "%s/%s", 94 parent->full_name, name); 95 if (rc < 0) 92 if (asprintf(&result->full_name, "%s/%s", 93 parent->full_name, name) < 0) 96 94 goto error; 97 95 result->dest = parent->dest;
Note:
See TracChangeset
for help on using the changeset viewer.