mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Printf zebin: accept string type pointer
In zebin type POINTER and address of strings are written into print buffer. This change allows the type to be POINTER=7, before only STRING=5 type was accepted. Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6f62a784e1
commit
ca5a8162eb
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -894,10 +894,10 @@ TEST_F(PrintFormatterTest, GivenNoStringMapAndBufferWithFormatStringAnd2StringsT
|
||||
storeData(formatString);
|
||||
|
||||
const char *string1 = "str1";
|
||||
storeData(PRINTF_DATA_TYPE::STRING);
|
||||
storeData(PRINTF_DATA_TYPE::POINTER);
|
||||
storeData(string1);
|
||||
const char *string2 = "str2";
|
||||
storeData(PRINTF_DATA_TYPE::STRING);
|
||||
storeData(PRINTF_DATA_TYPE::POINTER);
|
||||
storeData(string2);
|
||||
|
||||
const char *expectedOutput = "str1 str2";
|
||||
|
||||
Reference in New Issue
Block a user