From: Kyle Hale Date: Tue, 8 Oct 2013 17:08:56 +0000 (-0500) Subject: clean up v3_mem errors X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=0e7cd2d96012d3a3dbf022f7de791f46c5bdccb7;p=palacios.releases.git clean up v3_mem errors --- 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