file-util: allow specifying path separately in file_create_dated()
Instead of assuming the file prefix contains the path and filename prefix, give these two items separately. A NULL or empty string path may still be given to refer to the current directory. Signed-off-by: Aleksander Morgado <aleksander@aleksander.es> Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
committed by
Daniel Stone
parent
e3c2a76d8f
commit
72032accbf
@@ -53,7 +53,7 @@ weston_timeline_do_open(void)
|
||||
const char *suffix = ".log";
|
||||
char fname[1000];
|
||||
|
||||
timeline_.file = file_create_dated(prefix, suffix,
|
||||
timeline_.file = file_create_dated(NULL, prefix, suffix,
|
||||
fname, sizeof(fname));
|
||||
if (!timeline_.file) {
|
||||
const char *msg;
|
||||
|
||||
Reference in New Issue
Block a user