mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-06-16 02:15:47 +00:00
early_printk: Simplify the code
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
committed by
Will Deacon
parent
5b9d0b58c0
commit
f2d8dc88ea
+4
-4
@@ -14,11 +14,11 @@ static int early_serial_base = 0x3f8; /* ttyS0 */
|
||||
static bool early_serial_txr_out(struct kvm *self, uint16_t port, void *data, int size, uint32_t count)
|
||||
{
|
||||
char *p = data;
|
||||
uint32_t i;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < count; i++) {
|
||||
fprintf(stderr, "%c", *p);
|
||||
p += size;
|
||||
while (count--) {
|
||||
for (i = 0; i < size; i++)
|
||||
fprintf(stderr, "%c", *p++);
|
||||
}
|
||||
fflush(stderr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user