[Armadeus-commitlog] SF.net SVN: armadeus: [827] trunk/target/linux/debug/imxregs/imxregs.c
Brought to you by:
sszy
|
From: <ar...@us...> - 2008-07-09 15:04:40
|
Revision: 827
http://armadeus.svn.sourceforge.net/armadeus/?rev=827&view=rev
Author: artemys
Date: 2008-07-09 08:04:45 -0700 (Wed, 09 Jul 2008)
Log Message:
-----------
[TOOLS] imxregs: say when register is not found
Modified Paths:
--------------
trunk/target/linux/debug/imxregs/imxregs.c
Modified: trunk/target/linux/debug/imxregs/imxregs.c
===================================================================
--- trunk/target/linux/debug/imxregs/imxregs.c 2008-07-05 15:43:06 UTC (rev 826)
+++ trunk/target/linux/debug/imxregs/imxregs.c 2008-07-09 15:04:45 UTC (rev 827)
@@ -163,14 +163,18 @@
// Show content of register with name starting with given string
static void dumpmatching(char *name)
{
- int i;
+ int i, found=0;
int n=sizeof(regs)/sizeof(struct reg_info);
for (i=0; i<n; i++)
{
- if (strstr(regs[i].name, name))
+ if (strstr(regs[i].name, name)) {
dumpentry(i);
+ found = 1;
+ }
}
+ if(!found)
+ printf("No matching register found\n");
}
//
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|