mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-29 20:47:56 +00:00
HV:treewide:fix rest of violations related parameter changed
Misra c required parameter should not changed in the scope of function,use local variable to replace it. Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
@@ -281,8 +281,9 @@ static int format_number(struct print_param *param)
|
||||
}
|
||||
|
||||
static int print_pow2(struct print_param *param,
|
||||
uint64_t v, uint32_t shift)
|
||||
uint64_t v_arg, uint32_t shift)
|
||||
{
|
||||
uint64_t v = v_arg;
|
||||
/* max buffer required for octal representation of unsigned long long */
|
||||
char digitbuff[22];
|
||||
/* Insert position for the next character+1 */
|
||||
|
Reference in New Issue
Block a user