libwd/0068-uadk_tool-use-marco-to-replace-numbers.patch
2023-11-23 10:41:04 +08:00

44 lines
1.4 KiB
Diff

From 3fb56fddd367e6bcace4cc56a732002385c4be41 Mon Sep 17 00:00:00 2001
From: Weili Qian <qianweili@huawei.com>
Date: Fri, 10 Nov 2023 11:52:37 +0800
Subject: [PATCH 68/85] uadk_tool: use marco to replace numbers
Use marco to replace incomprehensible numbers.
Signed-off-by: Weili Qian <qianweili@huawei.com>
---
uadk_tool/benchmark/sec_uadk_benchmark.c | 2 +-
uadk_tool/benchmark/zip_uadk_benchmark.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/uadk_tool/benchmark/sec_uadk_benchmark.c b/uadk_tool/benchmark/sec_uadk_benchmark.c
index 9f1f903..88806ca 100644
--- a/uadk_tool/benchmark/sec_uadk_benchmark.c
+++ b/uadk_tool/benchmark/sec_uadk_benchmark.c
@@ -600,8 +600,8 @@ static void uninit_ctx_config2(int subtype)
static int init_ctx_config2(struct acc_option *options)
{
- char alg_name[64];
int subtype = options->subtype;
+ char alg_name[MAX_ALG_NAME];
int ret;
ret = get_alg_name(options->algtype, alg_name);
diff --git a/uadk_tool/benchmark/zip_uadk_benchmark.c b/uadk_tool/benchmark/zip_uadk_benchmark.c
index 7b02df8..435c0b4 100644
--- a/uadk_tool/benchmark/zip_uadk_benchmark.c
+++ b/uadk_tool/benchmark/zip_uadk_benchmark.c
@@ -286,7 +286,7 @@ static void uninit_ctx_config2(void)
static int init_ctx_config2(struct acc_option *options)
{
- char alg_name[64];
+ char alg_name[MAX_ALG_NAME];
int ret = 0;
ret = get_alg_name(options->algtype, alg_name);
--
2.25.1