From 53062ac43d341bc221d94925edee3b4068b8cf7b Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Sun, 16 Feb 2003 20:55:15 +0000 Subject: [PATCH] 2003-02-16 Marcel Telka * src/jtag.c (main): Corrected error message for 'instruction' command and added a notice when an instruction is unknown (Alessandro Zummo). git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@358 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 5 +++++ jtag/src/jtag.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 881c8e73..a9eac45a 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,3 +1,8 @@ +2003-02-16 Marcel Telka + + * src/jtag.c (main): Corrected error message for 'instruction' command and added + a notice when an instruction is unknown (Alessandro Zummo). + 2003-02-16 Marcel Telka * src/jtag.c (main): Fixed segfault in 'detectflash'. Thanks to August Hörandl diff --git a/jtag/src/jtag.c b/jtag/src/jtag.c index d1120705..4ab44b8a 100644 --- a/jtag/src/jtag.c +++ b/jtag/src/jtag.c @@ -423,7 +423,7 @@ main( void ) t = get_token( NULL ); if (!t) { - printf( "Missing instruction name\n" ); + printf( "instruction: missing instruction name\n" ); continue; } @@ -433,6 +433,8 @@ main( void ) } part_set_instruction( ps->parts[n], t ); + if (ps->parts[n]->active_instruction == NULL) + printf( "instruction: unknown instruction %s\n", t ); continue; }