This patch adds an additional output message when drmgr fails to remove
all of the requested lmbs in a drmgr memory remove request. This additional
message is meant just to help clarify that the memory remove operations
didn't fail, but was unable to completely fulfill the request. This update
came as a request from testers.
Signed-off-by: Nathan Fontenot <nf...@au...>
---
Index: powerpc-utils/src/drmgr/drslot_chrp_mem.c
===================================================================
--- powerpc-utils.orig/src/drmgr/drslot_chrp_mem.c 2009-07-10 14:46:25.000000000 -0500
+++ powerpc-utils/src/drmgr/drslot_chrp_mem.c 2009-07-10 19:10:32.000000000 -0500
@@ -972,6 +972,9 @@
dbg("Removed %d of %d requested lmb(s)\n", lmb_list->lmbs_modified,
opts->quantity);
+ if (lmb_list->lmbs_modified < opts->quantity)
+ dbg("Unable to hotplug remove the remaining %d lmb(s)\n",
+ opts->quantity - lmb_list->lmbs_modified);
printf("DR_TOTAL_RESOURCES=%d\n", lmb_list->lmbs_modified);
free_lmbs(lmb_list);
|