mirror of https://github.com/thesofproject/sof.git
logger: convert: fix variable type for negative value
time_precision variable can be used as -1
Fixes commit ff9343aa4a
("logger: convert: Fix compile time error with
newer toolchain")
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
This commit is contained in:
parent
a6700afea1
commit
af80acccc6
|
@ -532,7 +532,7 @@ static void print_entry_params(const struct log_entry_header *dma_log,
|
|||
entry->header.line_idx);
|
||||
} else {
|
||||
if (time_precision >= 0) {
|
||||
const unsigned int ts_width = timestamp_width(time_precision);
|
||||
const uint8_t ts_width = timestamp_width(time_precision);
|
||||
|
||||
fprintf(out_fd, "%s[%*.*f] (%*.*f)%s ",
|
||||
use_colors ? KGRN : "",
|
||||
|
|
|
@ -41,7 +41,7 @@ struct convert_config {
|
|||
int dump_ldc;
|
||||
int hide_location;
|
||||
int relative_timestamps;
|
||||
uint8_t time_precision;
|
||||
int8_t time_precision;
|
||||
struct snd_sof_uids_header *uids_dict;
|
||||
struct snd_sof_logs_header *logs_header;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue