commit db682c2fa974da301cc0ebcb5de45fc2ba880ef0
parent 97635b3ce8afb4d9ee60a371cb20424619931c9c
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 16 Oct 2023 15:03:18 +0200
Minor adjustment to an error message
Print the stream name in the error message notifying that an attempt had
been made to use memory mapping when loading data from stdin. This
seemed unnecessary since stdin was already notified in the error
message, but the caller defines his own stream name which, when printed,
can help him interpret what is not working in his workflow.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/sck.c b/src/sck.c
@@ -67,7 +67,8 @@ check_sck_load_stream_args
{
if(!args || !args->stream || !args->name) return RES_BAD_ARG;
if(args->memory_mapping && is_stdin(args->stream)) {
- log_err(sck, "unable to use memory mapping on data loaded from stdin\n");
+ log_err(sck, "%s: unable to use memory mapping on data loaded from stdin\n",
+ args->name);
return RES_BAD_ARG;
}
return RES_OK;