Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logger: convert: fix variable type for negative value #8839

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/logger/convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 : "",
Expand Down
2 changes: 1 addition & 1 deletion tools/logger/convert.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
Loading