From: Mamatha I. <mam...@li...> - 2015-03-27 05:34:45
|
In drmgr command drmgr -R (REPLACE) flag check was missing, so this patch is to fix drmgr -R flag in valid_pci_options() interface. ************************************************* Test results: before fixing the patch: # drmgr -c pci -s U78CD.001.FZH0003-P2-C3 -R The '-r', '-a', or '-i' option must be spcified for PCI operation After fixing the patch: # ./src/drmgr/drmgr -c pci -s U78CD.001.FZH0003-P2-C3 -R The specified PCI slot is either invalid or does not support hot plug operations.xing the patch: ************************************************************** Signed-off-by: Mamatha Inamdar <mam...@li...> --- src/drmgr/drslot_chrp_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drmgr/drslot_chrp_pci.c b/src/drmgr/drslot_chrp_pci.c index 0c8de2f..d3873c7 100644 --- a/src/drmgr/drslot_chrp_pci.c +++ b/src/drmgr/drslot_chrp_pci.c @@ -855,8 +855,8 @@ valid_pci_options(struct options *opts) } if ((opts->action != ADD) && (opts->action != REMOVE) - && (opts->action != IDENTIFY)) { - say(ERROR, "The '-r', '-a', or '-i' option must be spcified " + && (opts->action != IDENTIFY) && (opts->action != REPLACE)) { + say(ERROR, "The '-r', '-a', '-R' or '-i' option must be spcified " "for PCI operations\n"); return -1; } |