diff options
| author | Luca Ceresoli <[email protected]> | 2023-04-18 10:00:40 +0200 |
|---|---|---|
| committer | Hans Verkuil <[email protected]> | 2023-05-25 13:04:47 +0200 |
| commit | 40ecb38e5c961174f86bfb4d5b1d2ae821cc45c2 (patch) | |
| tree | af5048d8650491c0fb3d76d2848aff4318864b79 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 6309986d7e42f68d6d13eccd81dfd7f3e2c3d92b (diff) | |
staging: media: tegra-video: improve error messages
tegra_vi_channels_alloc() can primarily fail for two reasons:
1. "ports" node not found
2. port_num > vi->soc->vi_max_channels
Case 1 prints nothing, case 2 has a dev_err(). The caller [tegra_vi_init()]
has a generic dev_err() on any failure. This mean that in case 2 we print
two messages, and in case 1 we only print a generic message.
Remove the generic message and add a specific message when case 1 happens,
so that we always have one specific message without even increasing the
number of dev_dbg*() calls.
Signed-off-by: Luca Ceresoli <[email protected]>
Reviewed-by: Dmitry Osipenko <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions