File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ void kernel::diag::post_service() noexcept {
108108 DIAGNOSE (invariant_post_init_libc (), " Post init libc invariant still holds" );
109109
110110 if (diag_failures == 0 ){
111- MYINFO (" Diagnose complete. Healthy ✅" );
111+ MYINFO (" Diagnose complete. Healthy ✅" );
112112 } else {
113113 MYINFO (" Diagnose complete: %i / %i checks failed" , diag_failures, (diag_failures + diag_successes));
114114 }
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ void Service::ready()
6767 printf (" Service::ready() called\n " );
6868}
6969
70+ __attribute__ ((format (printf, 1 , 2 )))
7071extern "C"
7172void kprintf(const char * format, ...)
7273{
@@ -77,9 +78,9 @@ void kprintf(const char* format, ...)
7778}
7879
7980extern " C"
80- void kprint (char * str)
81+ void kprint (const char * str)
8182{
82- printf (" %s" , str);
83+ printf (" %s" , str);
8384}
8485
8586#include < os.hpp>
@@ -157,8 +158,8 @@ extern "C" {
157158 printf (" <serial print1> %s\n " , cstr);
158159 }
159160
160- void __serial_print (const char * cstr, int len) {
161- printf (" <serial print> %.*s" , len, cstr);
161+ void __serial_print (const char * cstr, size_t len) {
162+ printf (" <serial print> %.*s" , static_cast < int >( len) , cstr);
162163 }
163164} // ~ extern "C"
164165
You can’t perform that action at this time.
0 commit comments