X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_usr%2Fv3_mem.c;h=93a511f9f999b70271fe597d07950006c30e4cc9;hb=755eccfbd8dff71bfbd6be828ef3725ecdcd4d4d;hp=82f33c2ab89b3bb402c626ab35997ef80bff9c24;hpb=e8e3ec0355b791d6f729df796d0155bccca85090;p=palacios.git diff --git a/linux_usr/v3_mem.c b/linux_usr/v3_mem.c index 82f33c2..93a511f 100644 --- a/linux_usr/v3_mem.c +++ b/linux_usr/v3_mem.c @@ -665,11 +665,17 @@ static int offline_memory(unsigned long long mem_size_bytes, int j = 0; int major = (i + reg_start) / 8; int minor = (i + reg_start) % 8; + char * pos; bitmap[major] &= ~(0x1 << minor); // mark the block as not removable in bitmap mem_ready = 0; // Keep searching + // remove trailing newline + if ((pos=strchr(status_buf, '\n')) != NULL) { + *pos = '\0'; + } + EPRINTF("ERROR - block status is '%s'\n", status_buf); // Unwind space