aboutsummaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-12-24 09:47:46 +0100
committerNikunj A. Dadhania <nikunj@linux.vnet.ibm.com>2013-01-04 10:12:48 +0530
commitd0700685741e668a25a4cc1e2ce1994377dd42b4 (patch)
treeb813fda2e1521e9f5e2a374b2c342cdd978c19cf /clients
parent0ad10f26c94a86a0c9c3970e53f9a9f6a744055d (diff)
downloadSLOF-d0700685741e668a25a4cc1e2ce1994377dd42b4.zip
SLOF-d0700685741e668a25a4cc1e2ce1994377dd42b4.tar.gz
SLOF-d0700685741e668a25a4cc1e2ce1994377dd42b4.tar.bz2
Spelling fixes in comments and debug messages
Most of these errors were found by codespell: controler -> controller appropiate -> appropriate devide -> divide comming -> coming seperate -> separate reponsible -> responsible initialization -> initialization successfull -> successful whithin -> within recieve -> receive wich -> which occurence -> occurrence beggining -> beginning accessable -> accessible proccess -> process succesfuly -> successfully immediatly -> immediately prefered -> preferred avaliable -> available threshhold -> threshold statistsics -> statistics endianess -> endianness positon -> position writen -> written occurence -> occurrence upto -> up to overwriten -> overwritten availabe -> available enviroment -> environment intruction -> instruction thru -> through substract -> subtract occured -> occurred begining -> beginning lenght -> length atributes -> attributes preceeding -> preceding defintion -> definition decriptor -> descriptor Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Diffstat (limited to 'clients')
-rw-r--r--clients/net-snk/app/biosemu/biosemu.c2
-rw-r--r--clients/net-snk/app/biosemu/io.c12
-rw-r--r--clients/net-snk/app/biosemu/mem.c12
-rw-r--r--clients/net-snk/app/biosemu/vbe.c2
-rw-r--r--clients/net-snk/app/netapps/args.c12
-rw-r--r--clients/net-snk/app/netapps/netboot.c6
-rw-r--r--clients/net-snk/app/netlib/dhcp.c12
-rw-r--r--clients/net-snk/app/netlib/dns.c8
-rw-r--r--clients/net-snk/app/netlib/ipv4.c2
-rw-r--r--clients/net-snk/app/netlib/tftp.c2
-rw-r--r--clients/net-snk/kernel/modules.c2
-rw-r--r--clients/net-snk/kernel/systemcall.c2
-rw-r--r--clients/net-snk/kernel/timer.c4
13 files changed, 39 insertions, 39 deletions
diff --git a/clients/net-snk/app/biosemu/biosemu.c b/clients/net-snk/app/biosemu/biosemu.c
index 8d36de6..82a763a 100644
--- a/clients/net-snk/app/biosemu/biosemu.c
+++ b/clients/net-snk/app/biosemu/biosemu.c
@@ -327,7 +327,7 @@ biosemu(char argc, char **argv)
// indicating that the initialization probably was successful
if ((pop_word() == 0xf4f4) && (M.x86.R_SS == STACK_SEGMENT)
&& (M.x86.R_SP == STACK_START_OFFSET)) {
- DEBUG_PRINTF("Stack is clean, initialization successfull!\n");
+ DEBUG_PRINTF("Stack is clean, initialization successful!\n");
} else {
DEBUG_PRINTF
("Stack unclean, initialization probably NOT COMPLETE!!!\n");
diff --git a/clients/net-snk/app/biosemu/io.c b/clients/net-snk/app/biosemu/io.c
index 5cc1ad7..3092c22 100644
--- a/clients/net-snk/app/biosemu/io.c
+++ b/clients/net-snk/app/biosemu/io.c
@@ -83,7 +83,7 @@ my_inb(X86EMU_pioAddr addr)
uint64_t translated_addr = addr;
uint8_t translated = dev_translate_address(&translated_addr);
if (translated != 0) {
- //translation successfull, access Device I/O (BAR or Legacy...)
+ //translation successful, access Device I/O (BAR or Legacy...)
DEBUG_PRINTF_IO("%s(%x): access to Device I/O\n", __FUNCTION__,
addr);
//DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __FUNCTION__, addr, translated_addr);
@@ -132,7 +132,7 @@ my_inw(X86EMU_pioAddr addr)
uint64_t translated_addr = addr;
uint8_t translated = dev_translate_address(&translated_addr);
if (translated != 0) {
- //translation successfull, access Device I/O (BAR or Legacy...)
+ //translation successful, access Device I/O (BAR or Legacy...)
DEBUG_PRINTF_IO("%s(%x): access to Device I/O\n", __FUNCTION__,
addr);
//DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __FUNCTION__, addr, translated_addr);
@@ -177,7 +177,7 @@ my_inl(X86EMU_pioAddr addr)
uint64_t translated_addr = addr;
uint8_t translated = dev_translate_address(&translated_addr);
if (translated != 0) {
- //translation successfull, access Device I/O (BAR or Legacy...)
+ //translation successful, access Device I/O (BAR or Legacy...)
DEBUG_PRINTF_IO("%s(%x): access to Device I/O\n", __FUNCTION__,
addr);
//DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __FUNCTION__, addr, translated_addr);
@@ -223,7 +223,7 @@ my_outb(X86EMU_pioAddr addr, uint8_t val)
uint64_t translated_addr = addr;
uint8_t translated = dev_translate_address(&translated_addr);
if (translated != 0) {
- //translation successfull, access Device I/O (BAR or Legacy...)
+ //translation successful, access Device I/O (BAR or Legacy...)
DEBUG_PRINTF_IO("%s(%x, %x): access to Device I/O\n",
__FUNCTION__, addr, val);
//DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __FUNCTION__, addr, translated_addr);
@@ -255,7 +255,7 @@ my_outw(X86EMU_pioAddr addr, uint16_t val)
uint64_t translated_addr = addr;
uint8_t translated = dev_translate_address(&translated_addr);
if (translated != 0) {
- //translation successfull, access Device I/O (BAR or Legacy...)
+ //translation successful, access Device I/O (BAR or Legacy...)
DEBUG_PRINTF_IO("%s(%x, %x): access to Device I/O\n",
__FUNCTION__, addr, val);
//DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __FUNCTION__, addr, translated_addr);
@@ -296,7 +296,7 @@ my_outl(X86EMU_pioAddr addr, uint32_t val)
uint64_t translated_addr = addr;
uint8_t translated = dev_translate_address(&translated_addr);
if (translated != 0) {
- //translation successfull, access Device I/O (BAR or Legacy...)
+ //translation successful, access Device I/O (BAR or Legacy...)
DEBUG_PRINTF_IO("%s(%x, %x): access to Device I/O\n",
__FUNCTION__, addr, val);
//DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __FUNCTION__, addr, translated_addr);
diff --git a/clients/net-snk/app/biosemu/mem.c b/clients/net-snk/app/biosemu/mem.c
index b214a96..3a62c96 100644
--- a/clients/net-snk/app/biosemu/mem.c
+++ b/clients/net-snk/app/biosemu/mem.c
@@ -177,7 +177,7 @@ my_rdb(uint32_t addr)
uint8_t translated = dev_translate_address(&translated_addr);
uint8_t rval;
if (translated != 0) {
- //translation successfull, access VGA Memory (BAR or Legacy...)
+ //translation successful, access VGA Memory (BAR or Legacy...)
DEBUG_PRINTF_MEM("%s(%08x): access to VGA Memory\n",
__FUNCTION__, addr);
//DEBUG_PRINTF_MEM("%s(%08x): translated_addr: %llx\n", __FUNCTION__, addr, translated_addr);
@@ -209,7 +209,7 @@ my_rdw(uint32_t addr)
uint8_t translated = dev_translate_address(&translated_addr);
uint16_t rval;
if (translated != 0) {
- //translation successfull, access VGA Memory (BAR or Legacy...)
+ //translation successful, access VGA Memory (BAR or Legacy...)
DEBUG_PRINTF_MEM("%s(%08x): access to VGA Memory\n",
__FUNCTION__, addr);
//DEBUG_PRINTF_MEM("%s(%08x): translated_addr: %llx\n", __FUNCTION__, addr, translated_addr);
@@ -260,7 +260,7 @@ my_rdl(uint32_t addr)
uint8_t translated = dev_translate_address(&translated_addr);
uint32_t rval;
if (translated != 0) {
- //translation successfull, access VGA Memory (BAR or Legacy...)
+ //translation successful, access VGA Memory (BAR or Legacy...)
DEBUG_PRINTF_MEM("%s(%x): access to VGA Memory\n",
__FUNCTION__, addr);
//DEBUG_PRINTF_MEM("%s(%08x): translated_addr: %llx\n", __FUNCTION__, addr, translated_addr);
@@ -322,7 +322,7 @@ my_wrb(uint32_t addr, uint8_t val)
uint64_t translated_addr = addr;
uint8_t translated = dev_translate_address(&translated_addr);
if (translated != 0) {
- //translation successfull, access VGA Memory (BAR or Legacy...)
+ //translation successful, access VGA Memory (BAR or Legacy...)
DEBUG_PRINTF_MEM("%s(%x, %x): access to VGA Memory\n",
__FUNCTION__, addr, val);
//DEBUG_PRINTF_MEM("%s(%08x): translated_addr: %llx\n", __FUNCTION__, addr, translated_addr);
@@ -347,7 +347,7 @@ my_wrw(uint32_t addr, uint16_t val)
uint64_t translated_addr = addr;
uint8_t translated = dev_translate_address(&translated_addr);
if (translated != 0) {
- //translation successfull, access VGA Memory (BAR or Legacy...)
+ //translation successful, access VGA Memory (BAR or Legacy...)
DEBUG_PRINTF_MEM("%s(%x, %x): access to VGA Memory\n",
__FUNCTION__, addr, val);
//DEBUG_PRINTF_MEM("%s(%08x): translated_addr: %llx\n", __FUNCTION__, addr, translated_addr);
@@ -392,7 +392,7 @@ my_wrl(uint32_t addr, uint32_t val)
uint64_t translated_addr = addr;
uint8_t translated = dev_translate_address(&translated_addr);
if (translated != 0) {
- //translation successfull, access VGA Memory (BAR or Legacy...)
+ //translation successful, access VGA Memory (BAR or Legacy...)
DEBUG_PRINTF_MEM("%s(%x, %x): access to VGA Memory\n",
__FUNCTION__, addr, val);
//DEBUG_PRINTF_MEM("%s(%08x): translated_addr: %llx\n", __FUNCTION__, addr, translated_addr);
diff --git a/clients/net-snk/app/biosemu/vbe.c b/clients/net-snk/app/biosemu/vbe.c
index 61b7102..f9618b4 100644
--- a/clients/net-snk/app/biosemu/vbe.c
+++ b/clients/net-snk/app/biosemu/vbe.c
@@ -111,7 +111,7 @@ vbe_prepare()
M.x86.R_EDI = 0x0;
M.x86.R_ES = VBE_SEGMENT;
- return 0; // successfull init
+ return 0; // successful init
}
// VBE Function 00h
diff --git a/clients/net-snk/app/netapps/args.c b/clients/net-snk/app/netapps/args.c
index 72cf0ea..52215e6 100644
--- a/clients/net-snk/app/netapps/args.c
+++ b/clients/net-snk/app/netapps/args.c
@@ -19,8 +19,8 @@
/**
* Returns pointer of the n'th argument within a string.
*
- * @param arg_str string with arguments, seperated with ','
- * @param index index of the requested arguments whithin arg_str
+ * @param arg_str string with arguments, separated with ','
+ * @param index index of the requested arguments within arg_str
* @return pointer of argument[index] on success
* NULL if index is out of range
*/
@@ -41,7 +41,7 @@ get_arg_ptr(const char *arg_str, unsigned int index)
/**
* Returns number of arguments within a string.
*
- * @param arg_str string with arguments, seperated with ','
+ * @param arg_str string with arguments, separated with ','
* @return number of arguments
*/
unsigned int
@@ -57,7 +57,7 @@ get_args_count(const char *arg_str)
/**
* Returns the length of the first argument.
*
- * @param arg_str string with arguments, seperated with ','
+ * @param arg_str string with arguments, separated with ','
* @return length of first argument
*/
unsigned int
@@ -74,8 +74,8 @@ get_arg_length(const char *arg_str)
* Copy the n'th argument within a string into a buffer in respect
* to a limited buffer size
*
- * @param arg_str string with arguments, seperated with ','
- * @param index index of the requested arguments whithin arg_str
+ * @param arg_str string with arguments, separated with ','
+ * @param index index of the requested arguments within arg_str
* @param buffer pointer to the buffer
* @param length size of the buffer
* @return pointer of buffer on success
diff --git a/clients/net-snk/app/netapps/netboot.c b/clients/net-snk/app/netapps/netboot.c
index aa4df11..952bb33 100644
--- a/clients/net-snk/app/netapps/netboot.c
+++ b/clients/net-snk/app/netapps/netboot.c
@@ -55,7 +55,7 @@ typedef struct {
* Parses a argument string for IPv6 booting, extracts all
* parameters and fills a structure accordingly
*
- * @param arg_str string with arguments, seperated with ','
+ * @param arg_str string with arguments, separated with ','
* @param argc number of arguments
* @param obp_tftp_args structure which contains the result
* @return updated arg_str
@@ -144,7 +144,7 @@ parse_ipv6args (const char *arg_str, unsigned int argc,
* Parses a argument string for IPv4 booting, extracts all
* parameters and fills a structure accordingly
*
- * @param arg_str string with arguments, seperated with ','
+ * @param arg_str string with arguments, separated with ','
* @param argc number of arguments
* @param obp_tftp_args structure which contains the result
* @return updated arg_str
@@ -232,7 +232,7 @@ parse_ipv4args (const char *arg_str, unsigned int argc,
* Netload-Parameters:
* [bootp,]siaddr,filename,ciaddr,giaddr,bootp-retries,tftp-retries
*
- * @param arg_str string with arguments, seperated with ','
+ * @param arg_str string with arguments, separated with ','
* @param obp_tftp_args structure which contains the result
* @return none
*/
diff --git a/clients/net-snk/app/netlib/dhcp.c b/clients/net-snk/app/netlib/dhcp.c
index 8f81bf3..b00f049 100644
--- a/clients/net-snk/app/netlib/dhcp.c
+++ b/clients/net-snk/app/netlib/dhcp.c
@@ -177,7 +177,7 @@ static char * response_buffer;
* DHCP: Obtains IP and configuration info from DHCP server
* (makes several attempts).
*
- * @param boot_device a socket number used to send and recieve packets
+ * @param boot_device a socket number used to send and receive packets
* @param fn_ip contains the following configuration information:
* client MAC, client IP, TFTP-server MAC,
* TFTP-server IP, Boot file name
@@ -292,7 +292,7 @@ dhcp_attempt(void) {
*
* @param opt_field Points to the "vend" field of DHCP-message
* (destination)
- * @param opt_struct this structure stores info about the options wich
+ * @param opt_struct this structure stores info about the options which
* will be added to DHCP-message (source)
* @return TRUE - options packed;
* FALSE - error condition occurs.
@@ -387,7 +387,7 @@ dhcp_encode_options(uint8_t * opt_field, dhcp_options_t * opt_struct) {
* @param opt_field Points to the "options" field of DHCP-message
* (source).
* @param opt_len Length of "options" field.
- * @param opt_struct this structure stores info about the options wich
+ * @param opt_struct this structure stores info about the options which
* was extracted from DHCP-message (destination).
* @return TRUE - options extracted;
* FALSE - error condition occurs.
@@ -527,13 +527,13 @@ static int8_t dhcp_merge_options(uint8_t dst_options[], uint32_t * dst_len,
}
/**
- * DHCP: Finds given occurence of the option with the given code (op_code)
+ * DHCP: Finds given occurrence of the option with the given code (op_code)
* in "options" field of DHCP-message.
*
* @param options "options" field of DHCP-message
* @param len length of the "options" field
* @param op_code code of the option to find
- * @param op_offset SUCCESS - offset to an option occurence;
+ * @param op_offset SUCCESS - offset to an option occurrence;
* FAULT - offset is set to zero.
* @return TRUE - option was find;
* FALSE - option wasn't find.
@@ -582,7 +582,7 @@ dhcp_append_option(uint8_t dst_options[], uint32_t * dst_len,
*
* @param dst_options "options" field of DHCP-message
* @param dst_len length of the "options" field (modified)
- * @param dst_offset offset of the option from beggining of the list
+ * @param dst_offset offset of the option from beginning of the list
* @param new_option points to an option in another list (src)
*/
static void
diff --git a/clients/net-snk/app/netlib/dns.c b/clients/net-snk/app/netlib/dns.c
index 5a931d5..4acc080 100644
--- a/clients/net-snk/app/netlib/dns.c
+++ b/clients/net-snk/app/netlib/dns.c
@@ -93,7 +93,7 @@ static int8_t dns_domain_cname[0x100]; /**< Canonical domain name */
* DNS: Initialize the environment for DNS client.
* To perfrom DNS-queries use the function dns_get_ip.
*
- * @param device_socket a socket number used to send and recieve packets
+ * @param device_socket a socket number used to send and receive packets
* @param server_ip DNS-server IPv4 address (e.g. 127.0.0.1)
* @return TRUE in case of successful initialization;
* FALSE in case of fault (e.g. can't obtain MAC).
@@ -144,7 +144,7 @@ dns_get_ip(int8_t * url, uint32_t * domain_ip) {
return 0;
}
- // Check if DNS server is presented and accessable
+ // Check if DNS server is presented and accessible
if (dns_server_ip == 0) {
printf("\nERROR:\t\t\tCan't resolve domain name "
"(DNS server is not presented)!\n");
@@ -183,7 +183,7 @@ dns_get_ip(int8_t * url, uint32_t * domain_ip) {
/**
* DNS: Handles DNS-messages according to Receive-handle diagram.
* Sets dns_result_ip for given dns_domain_name (see dns_get_ip)
- * or signals error condition occurs during DNS-resolving proccess
+ * or signals error condition occurs during DNS-resolving process
* by setting dns_error flag.
*
* @param packet DNS-packet to be handled
@@ -266,7 +266,7 @@ handle_dns(uint8_t * packet, int32_t packetsize) {
resp_section += htons(* (uint16_t *) (resp_section + 8)) + 10;
}
}
- return 0; // Packet succesfuly handled but IP wasn't obtained
+ return 0; // Packet successfully handled but IP wasn't obtained
}
/**
diff --git a/clients/net-snk/app/netlib/ipv4.c b/clients/net-snk/app/netlib/ipv4.c
index df18970..978e56b 100644
--- a/clients/net-snk/app/netlib/ipv4.c
+++ b/clients/net-snk/app/netlib/ipv4.c
@@ -401,7 +401,7 @@ handle_ipv4(uint8_t * ip_packet, int32_t packetsize)
* We sent an ARP request first, if this is the first packet sent to
* the declared IPv4 destination address. In this case we store the
* the packet and sent it later if we receive the ARP response.
- * If the MAC address is known already, then we send the packet immediatly.
+ * If the MAC address is known already, then we send the packet immediately.
* If there is already an ARP request pending, then we drop this packet
* and send again an ARP request.
*
diff --git a/clients/net-snk/app/netlib/tftp.c b/clients/net-snk/app/netlib/tftp.c
index dd1e752..f58df18 100644
--- a/clients/net-snk/app/netlib/tftp.c
+++ b/clients/net-snk/app/netlib/tftp.c
@@ -535,7 +535,7 @@ tftp(filename_ip_t * _fn_ip, unsigned char *_buffer, int _len,
* which do not support the RRQ blocksize option */
blocksize = 512;
- /* Prefered blocksize - used as option for the read request */
+ /* Preferred blocksize - used as option for the read request */
if (_blocksize < 8)
_blocksize = 8;
else if (_blocksize > MAX_BLOCKSIZE)
diff --git a/clients/net-snk/kernel/modules.c b/clients/net-snk/kernel/modules.c
index a719f27..e7f8cbb 100644
--- a/clients/net-snk/kernel/modules.c
+++ b/clients/net-snk/kernel/modules.c
@@ -91,7 +91,7 @@ load_module(const char *name)
}
}
if(i == MODULES_MAX) {
- // no space avaliable!
+ // no space available!
return -3;
}
diff --git a/clients/net-snk/kernel/systemcall.c b/clients/net-snk/kernel/systemcall.c
index b63df52..644f459 100644
--- a/clients/net-snk/kernel/systemcall.c
+++ b/clients/net-snk/kernel/systemcall.c
@@ -40,7 +40,7 @@ _syscall_open(const char* name, int flags)
}
if(fd == FILEIO_MAX) {
printk ("Can not open \"%s\" because file descriptor list is full\n", name);
- /* there is no free file descriptor avaliable */
+ /* there is no free file descriptor available */
return -2;
}
diff --git a/clients/net-snk/kernel/timer.c b/clients/net-snk/kernel/timer.c
index 0b8a18f..1d5ae16 100644
--- a/clients/net-snk/kernel/timer.c
+++ b/clients/net-snk/kernel/timer.c
@@ -54,7 +54,7 @@ static void wait_ticks(uint64_t ticks)
// wait for (at least) usecs microseconds
void udelay(unsigned int usecs)
{
- // first multiply the usec with timebase and then devide
+ // first multiply the usec with timebase and then divide
// because 1.000.000 is relatively huge compared to usecs
wait_ticks((usecs*tb_freq)/1000000);
}
@@ -63,7 +63,7 @@ void udelay(unsigned int usecs)
// wait for (at least) msecs milliseconds
void mdelay(unsigned int msecs)
{
- // first multiply the msec and timebase and then devide
+ // first multiply the msec and timebase and then divide
// because 1.000 is relatively huge compared to msecs
wait_ticks((msecs*tb_freq)/1000);
}