Index: kernel/generic/src/debug/symtab.c
===================================================================
--- kernel/generic/src/debug/symtab.c	(revision aca4a04f4f74053450eb044698771dc0fe13d2ef)
+++ kernel/generic/src/debug/symtab.c	(revision 8fccd4216924b16f8b4f06024b53f74d230c3c1b)
@@ -210,5 +210,5 @@
  *
  */
-int symtab_compl(char *input, size_t size, indev_t * indev)
+int symtab_compl(char *input, size_t size, indev_t *indev)
 {
 #ifdef CONFIG_SYMTAB
@@ -227,6 +227,9 @@
 	const char *hint;
 	char output[MAX_SYMBOL_NAME];
-	/* Maximum Match Length : Length of longest matching common substring in
-	   case more than one match is found */
+	
+	/*
+	 * Maximum Match Length: Length of longest matching common substring in
+	 * case more than one match is found.
+	 */
 	size_t max_match_len = size;
 	size_t max_match_len_tmp = size;
@@ -238,9 +241,8 @@
 	
 	output[0] = 0;
-
-	while ((hint = symtab_search_one(name, &pos))) {
-		++pos;
-	}
-
+	
+	while ((hint = symtab_search_one(name, &pos)))
+		pos++;
+	
 	pos = 0;
 	
@@ -253,8 +255,12 @@
 	}
 	
-	/* If possible completions are more than MAX_TAB_HINTS, ask user whether to display them or not. */
+	/*
+	 * If the number of possible completions is more than MAX_TAB_HINTS,
+	 * ask the user whether to display them or not.
+	 */
 	if (found > MAX_TAB_HINTS) {
 		printf("\n");
-		continue_showing_hints = console_prompt_display_all_hints(indev, found);
+		continue_showing_hints =
+		    console_prompt_display_all_hints(indev, found);
 	}
 	
@@ -265,20 +271,27 @@
 			sym_name = symbol_table[pos].symbol_name;
 			pos++;
-
-			if (continue_showing_hints) { /* We are still showing hints */
+			
+			if (continue_showing_hints) {
+				/* We are still showing hints */
 				printf("%s\n", sym_name);
 				--hints_to_show;
 				++total_hints_shown;
-
-				if (hints_to_show == 0 && total_hints_shown != found) { /* Time to ask user to continue */
-					continue_showing_hints = console_prompt_more_hints(indev, &hints_to_show);
+				
+				if ((hints_to_show == 0) && (total_hints_shown != found)) {
+					/* Ask the user to continue */
+					continue_showing_hints =
+					    console_prompt_more_hints(indev, &hints_to_show);
 				}
 			}
-
-			for(max_match_len_tmp = 0; output[max_match_len_tmp] == sym_name[input_len + max_match_len_tmp]
-					&& max_match_len_tmp < max_match_len; ++max_match_len_tmp);
+			
+			for (max_match_len_tmp = 0;
+			    (output[max_match_len_tmp] ==
+			    sym_name[input_len + max_match_len_tmp]) &&
+			    (max_match_len_tmp < max_match_len); ++max_match_len_tmp);
+			
 			max_match_len = max_match_len_tmp;
 		}
-		/* keep only the characters common in all completions */
+		
+		/* Keep only the characters common in all completions */
 		output[max_match_len] = 0;
 	}
