]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/commitdiff
Remove unneeded type cast of printf format string
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 3 Dec 2014 17:39:18 +0000 (18:39 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 3 Dec 2014 17:39:18 +0000 (18:39 +0100)
rpp-test-sw/commands/main.c

index 3fc571ff61aae41a213959f601233efb98d414ea..8d334673e62f5826ca30fe011787f79b6a3206bf 100644 (file)
@@ -55,9 +55,7 @@ void main(void)
 void vApplicationMallocFailedHook(void)\r
 {\r
        #ifdef DEBUG\r
-       rpp_sci_printf((const char *)\r
-                                  "ERROR: manual memory allocation failed.\r\n"\r
-                                  );\r
+       rpp_sci_printf("ERROR: manual memory allocation failed.\r\n");\r
        #endif\r
 }\r
 #endif\r
@@ -71,9 +69,7 @@ void vApplicationStackOverflowHook(xTaskHandle xTask,
                                                                   signed portCHAR *pcTaskName)\r
 {\r
        #ifdef DEBUG\r
-       rpp_sci_printf((const char *)\r
-                                  "ERROR: Stack overflow : \"%s\".\r\n", pcTaskName\r
-                                  );\r
+       rpp_sci_printf("ERROR: Stack overflow : \"%s\".\r\n", pcTaskName);\r
        #endif\r
 }\r
 #endif\r