Simplify and improve parport_handle_parport_port_command:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 12 Jun 2009 01:40:03 +0000 (01:40 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 12 Jun 2009 01:40:03 +0000 (01:40 +0000)
commitae28b96ab9824474a8f5a808480fee3fe7db1f3a
treeb786924869514cf0a09e04c09d148e9da77d21bf
parent0f6a47837e64836385268bb4e99e123477775e68
Simplify and improve parport_handle_parport_port_command:
- Show the port number to the user when asking for it or setting it.
- Print an error if the parport_port has already been set.
- Use parse_u16 helper to ensure the parport_port string parses correctly.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2209 b42882b7-edfa-0310-969c-e2dbd0fdcd60
src/jtag/parport.c