diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-12-23 15:58:55 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-12-23 15:58:55 +0100 |
commit | b50e38700408ec0bb073fc56ade123a1305842b6 (patch) | |
tree | 17cef79defab1c6371d68367b923f5e0683b0f32 | |
parent | 1b466c7ec5d6b66905c47c49fd3cbc59569e7b4e (diff) | |
download | mediapointer-dvb-s2-b50e38700408ec0bb073fc56ade123a1305842b6.tar.gz mediapointer-dvb-s2-b50e38700408ec0bb073fc56ade123a1305842b6.tar.bz2 |
v4l2-dbg: fix --list-symbols
From: Hans Verkuil <hverkuil@xs4all.nl>
--list-symbols didn't work for i2c drivers anymore.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
-rw-r--r-- | v4l2-apps/util/v4l2-dbg.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/v4l2-apps/util/v4l2-dbg.cpp b/v4l2-apps/util/v4l2-dbg.cpp index b38d18cf0..f427d4442 100644 --- a/v4l2-apps/util/v4l2-dbg.cpp +++ b/v4l2-apps/util/v4l2-dbg.cpp @@ -395,7 +395,6 @@ int main(int argc, char **argv) std::string reg_set_arg; unsigned long long reg_min = 0, reg_max = 0; std::vector<std::string> get_regs; - char driver[255]; struct v4l2_dbg_match match; match.type = V4L2_CHIP_MATCH_HOST; @@ -549,7 +548,7 @@ int main(int argc, char **argv) } } else if (match.type == V4L2_CHIP_MATCH_I2C_DRIVER) { for (int board = ARRAY_SIZE(boards) - 1; board >= 0; board--) { - if (!strcasecmp(driver, boards[board].name)) { + if (!strcasecmp(match.name, boards[board].name)) { curr_bd = &boards[board]; break; } @@ -778,7 +777,7 @@ list_done: printf("No symbols found for driver %s\n", vcap.driver); } else { - printf("Symbols for driver %s:\n", vcap.driver); + printf("Symbols for driver %s:\n", curr_bd->name); for (int i = 0; i < curr_bd->regs_size; i++) printf("0x%08x: %s\n", curr_bd->regs[i].reg, curr_bd->regs[i].name); for (int i = 0; i < curr_bd->alt_regs_size; i++) |