File tree Expand file tree Collapse file tree 2 files changed +1
-47
lines changed Expand file tree Collapse file tree 2 files changed +1
-47
lines changed Original file line number Diff line number Diff line change @@ -135,38 +135,6 @@ int console_write(const char *s, size_t len)
135
135
return res ;
136
136
}
137
137
138
- void console_dump_bytes (const void * p , unsigned int len )
139
- {
140
-
141
- const unsigned char * x = p ;
142
- const unsigned char * e = x + len ;
143
- int i ;
144
-
145
- /* dump all bytes */
146
- while (x < e ) {
147
- /* write the address of the first byte in the row */
148
- printf ("%08x: " , (uint64_t ) x );
149
- /* print one row (16 bytes) as hexadecimal values */
150
- for (i = 0 ; i < 16 ; i ++ ) {
151
- printf ("%02x " , x [i ]);
152
- }
153
-
154
- /* print one row as ASCII characters (if possible) */
155
- for (i = 0 ; i < 16 ; i ++ ) {
156
- if ((x [i ] < ' ' ) || (x [i ] >= 127 )) {
157
- (void )console_putc ('.' );
158
- }
159
- else {
160
- (void )console_putc (x [i ]);
161
- }
162
- }
163
- /* continue with next row */
164
- (void )console_putc ('\n' );
165
- /* set pointer one row ahead */
166
- x += 16 ;
167
- }
168
- }
169
-
170
138
static void console_read (void )
171
139
{
172
140
spinlock_obtain (& lock );
Original file line number Diff line number Diff line change @@ -47,17 +47,6 @@ int console_write(const char *str, size_t len);
47
47
48
48
int console_putc (int ch );
49
49
50
- /** Dumps an array to the console.
51
- *
52
- * This function dumps an array of bytes to the console
53
- * in a hexadecimal format.
54
- *
55
- * @param p A pointer to the byte array to dump.
56
- * @param len The number of bytes to dump.
57
- */
58
-
59
- void console_dump_bytes (const void * p , unsigned int len );
60
-
61
50
void console_setup_timer (void );
62
51
63
52
uint32_t get_serial_handle (void );
@@ -89,10 +78,7 @@ static inline int console_putc(__unused int ch)
89
78
{
90
79
return 0 ;
91
80
}
92
- static inline void console_dump_bytes (__unused const void * p ,
93
- __unused unsigned int len )
94
- {
95
- }
81
+
96
82
static inline void console_setup_timer (void ) {}
97
83
static inline uint32_t get_serial_handle (void ) { return 0 ; }
98
84
You can’t perform that action at this time.
0 commit comments