[Sound-open-firmware] [PATCH 1/2] rimage: fix wrong error message

Liam Girdwood liam.r.girdwood at linux.intel.com
Fri May 11 11:19:09 CEST 2018


On Fri, 2018-05-11 at 15:55 +0800, Xiuli Pan wrote:
> From: Pan Xiuli <xiuli.pan at linux.intel.com>
> 
> If keyname can not be open, error message should output keyname insert
> of tmp path.
> 
> Signed-off-by: Pan Xiuli <xiuli.pan at linux.intel.com>
> ---
>  rimage/pkcs1_5.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/rimage/pkcs1_5.c b/rimage/pkcs1_5.c
> index 64a4b25..5b93311 100644
> --- a/rimage/pkcs1_5.c
> +++ b/rimage/pkcs1_5.c
> @@ -80,7 +80,8 @@ int pkcs_sign(struct image *image, struct fw_image_manifest
> *man,
>  	fprintf(stdout, " pkcs: signing with key %s\n", image->key_name);
>  	fp = fopen(image->key_name, "r");
>  	if (fp == NULL) {
> -		fprintf(stderr, "error: can't open file %s %d\n", path,
> -errno);
> +		fprintf(stderr, "error: can't open file %s %d\n",
> +			image->key_name, -errno);
>  		return -errno;
>  	}
>  	PEM_read_PrivateKey(fp, &privkey, NULL, NULL);

Both applied.

Thanks

Liam


More information about the Sound-open-firmware mailing list