Description: Spelling fixes
Author: Christian Kastner <ckk@debian.org>
Author: Tobias Frost <tobi@debian.org>
Bug: https://sourceforge.net/p/avarice/patches/31/
Last-Update: 2018-10-21
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/jtag2misc.cc
+++ b/src/jtag2misc.cc
@@ -56,7 +56,7 @@
     }
     catch (jtag_exception& e)
     {
-        fprintf(stderr, "set paramater command failed: %s\n",
+        fprintf(stderr, "set parameter command failed: %s\n",
                 e.what());
         throw;
     }
@@ -86,12 +86,12 @@
     }
     catch (jtag_exception& e)
     {
-        fprintf(stderr, "get paramater command failed: %s\n",
+        fprintf(stderr, "get parameter command failed: %s\n",
                 e.what());
         throw;
     }
     if (resp[0] != RSP_PARAMETER || respSize <= 1)
-        throw jtag_exception("unexpected response to get paramater command");
+        throw jtag_exception("unexpected response to get paremater command");
 }
 
 
--- a/src/jtag3misc.cc
+++ b/src/jtag3misc.cc
@@ -55,7 +55,7 @@
   }
   catch (jtag_exception& e)
   {
-    fprintf(stderr, "set paramater command failed: %s\n",
+    fprintf(stderr, "set parameter command failed: %s\n",
 	    e.what());
     throw;
   }
@@ -86,16 +86,16 @@
   }
   catch (jtag_exception& e)
   {
-    fprintf(stderr, "get paramater command failed: %s\n",
+    fprintf(stderr, "get parameter command failed: %s\n",
 	    e.what());
     throw;
   }
   if (resp[1] != RSP3_DATA || respsize < 3 + length)
   {
-    debugOut("unexpected response to get paramater command: 0x%02x\n",
+    debugOut("unexpected response to get parameter command: 0x%02x\n",
 	     resp[1]);
     delete [] resp;
-    throw jtag_exception("unexpected response to get paramater command");
+    throw jtag_exception("unexpected response to get parameter command");
   }
 }
 
--- a/doc/avarice.1
+++ b/doc/avarice.1
@@ -331,7 +331,7 @@
 Print a list of known devices.
 .TP
 .BR \-L ,\  \-\-write-lockbits \ <ll>
-Write lock bits. The lock byte data must be given in two digit hexidecimal
+Write lock bits. The lock byte data must be given in two digit hexadecimal
 format with zero padding if needed.
 .TP
 .BR \-l ,\  \-\-read-lockbits
@@ -376,7 +376,7 @@
 .BR \-W ,\  \-\-write-fuses \ <eehhll>
 Write fuses bytes. \fBee\fR is the extended fuse byte, \fBhh\fR is the high
 fuse byte and \fBll\fR is the low fuse byte. The fuse byte data must be given
-in two digit hexidecimal format with zero padding if needed. All three bytes
+in two digit hexadecimal format with zero padding if needed. All three bytes
 must currently be given.
 .br
 .B NOTE:
--- a/src/jtaggeneric.cc
+++ b/src/jtaggeneric.cc
@@ -432,7 +432,7 @@
     c = sscanf(fuses, "%02x%02x%02x", temp+2, temp+1, temp );
     if (c != 3)
     {
-        fprintf(stderr, "Error: Fuses specified are not in hexidecimal");
+        fprintf(stderr, "Error: Fuses specified are not in hexadecimal");
         return;
     }
 
@@ -596,7 +596,7 @@
     c = sscanf(lock, "%02x", temp);
     if (c != 1)
     {
-        fprintf(stderr, "Error: Fuses specified are not in hexidecimal");
+        fprintf(stderr, "Error: Fuses specified are not in hexadecimal");
         return;
     }
 
--- a/src/jtagio.cc
+++ b/src/jtagio.cc
@@ -110,7 +110,7 @@
 		return (SendResult)(mcu_data + infobuf[0]);
 	    break;
 	default:
-	    debugOut("Out of sync, reponse was `%02x'\n", ok);
+	    debugOut("Out of sync, response was `%02x'\n", ok);
 	    return send_failed;
 	}
       }
@@ -119,7 +119,7 @@
 /** Get a 'responseSize' byte response from the JTAG ICE
 
     Returns NULL if no bytes received for JTAG_COMM_TIMEOUT microseconds
-    Returns a dynamically allocated buffer containing the reponse (caller
+    Returns a dynamically allocated buffer containing the response (caller
     must free) otherwise
 **/
 uchar *jtag1::getJtagResponse(int responseSize)
