From 7de7c183c98bd9832e30c5cd602e68dd8575b1ae Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 3 Jan 2024 11:03:12 -0500 Subject: [PATCH] MT#59069 pass metafile to output_new to make it possible to support more formats. Functional no-op. Change-Id: Iae06b1247291f9b45eccc8959148918da8fc6c12 --- recording-daemon/output.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recording-daemon/output.c b/recording-daemon/output.c index 1478381d8..534e9d45b 100644 --- a/recording-daemon/output.c +++ b/recording-daemon/output.c @@ -100,13 +100,13 @@ static output_t *output_alloc(const char *path, const char *name) { return ret; } -static output_t *output_new(const char *path, const char *call, const char *type, const char *kind, +static output_t *output_new(const char *path, const metafile_t *mf, const char *type, const char *kind, const char *label) { // construct output file name struct timeval now; struct tm tm; - const char *ax = call; + const char *ax = mf->parent; gettimeofday(&now, NULL); localtime_r(&now.tv_sec, &tm); @@ -126,7 +126,7 @@ static output_t *output_new(const char *path, const char *call, const char *type g_string_append_c(f, '%'); break; case 'c': - g_string_append(f, call); + g_string_append(f, mf->parent); break; case 't': g_string_append(f, type); @@ -216,7 +216,7 @@ output_t *output_new_ext(metafile_t *mf, const char *type, const char *kind, con g_free(path); } else - ret = output_new(output_dir, mf->parent, type, kind, label); + ret = output_new(output_dir, mf, type, kind, label); return ret; }