[corosync] [PATCH 1/6] quorum-tools: fix options/help text

Steven Dake sdake at redhat.com
Mon Dec 12 14:14:43 GMT 2011


Reviewed-by: Steven Dake <sdake at redhat.com>

On 12/12/2011 06:00 AM, Fabio M. Di Nitto wrote:
> From: "Fabio M. Di Nitto" <fdinitto at redhat.com>
> 
> Signed-off-by: Fabio M. Di Nitto <fdinitto at redhat.com>
> ---
> :100644 100644 47a5686... 768ab55... M	tools/corosync-quorumtool.c
>  tools/corosync-quorumtool.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/tools/corosync-quorumtool.c b/tools/corosync-quorumtool.c
> index 47a5686..768ab55 100644
> --- a/tools/corosync-quorumtool.c
> +++ b/tools/corosync-quorumtool.c
> @@ -72,7 +72,7 @@ static void show_usage(const char *name)
>  	printf("  -v <votes>     change the number of votes for a node *\n");
>  	printf("  -n <nodeid>    optional nodeid of node for -v\n");
>  	printf("  -e <expected>  change expected votes for the cluster *\n");
> -	printf("  -h             show nodeids in hexadecimal rather than decimal\n");
> +	printf("  -H             show nodeids in hexadecimal rather than decimal\n");
>  	printf("  -i             show node IP addresses instead of the resolved name\n");
>  	printf("  -h             show this help text\n");
>  	printf("\n");
> @@ -438,7 +438,7 @@ int main (int argc, char *argv[]) {
>  		case 'i':
>  			address_format = ADDRESS_FORMAT_IP;
>  			break;
> -		case 'h':
> +		case 'H':
>  			nodeid_format = NODEID_FORMAT_HEX;
>  			break;
>  		case 'l':
> @@ -480,7 +480,7 @@ int main (int argc, char *argv[]) {
>  				exit(2);
>  			}
>  			break;
> -		case 'H':
> +		case 'h':
>  		case '?':
>  		default:
>  		break;



More information about the discuss mailing list