tests: kernel: sprintf: Fix build warning.
As there is no suffix to represent a literal as unsigned short it is typecasted. It is fix for Jira ZEP-2156 Signed-off-by: Savinay Dharmappa <savinay.dharmappa@intel.com>
This commit is contained in:
parent
079b17b312
commit
cc48d40c5f
1 changed files with 1 additions and 1 deletions
|
@ -435,7 +435,7 @@ int sprintf_misc_test(void)
|
|||
}
|
||||
|
||||
/*******************/
|
||||
sprintf(buffer, "%hx", 1234);
|
||||
sprintf(buffer, "%hx", (unsigned short)1234);
|
||||
if (strcmp("4d2", buffer) != 0) {
|
||||
TC_ERROR("sprintf(%%hx). Expected '4d2', got '%s'\n", buffer);
|
||||
status = TC_FAIL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue