The patch number 10142 was added via Hans Verkuil <[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel
If anyone has any objections, please let us know by sending a message to:
[email protected]
------
From: Hans Verkuil <[email protected]>
v4l2-dbg: fix --list-symbols
--list-symbols didn't work for i2c drivers anymore.
Priority: normal
Signed-off-by: Hans Verkuil <[email protected]>
---
v4l2-apps/util/v4l2-dbg.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff -r 4cc8ed11e2e0 -r 7b73e9bc0cf4 v4l2-apps/util/v4l2-dbg.cpp
--- a/v4l2-apps/util/v4l2-dbg.cpp Tue Dec 30 11:14:19 2008 +0100
+++ b/v4l2-apps/util/v4l2-dbg.cpp Tue Dec 23 15:58:55 2008 +0100
@@ -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++)
---
Patch is available at:
http://linuxtv.org/hg/v4l-dvb/rev/7b73e9bc0cf4034210ba8d2bdb334df2cc10446c
_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits