From patchwork Wed Feb 22 22:13:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 6889 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 469CE23EB0 for ; Wed, 22 Feb 2012 22:13:19 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id F2C9EA1879C for ; Wed, 22 Feb 2012 22:13:18 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id z7so892070iab.11 for ; Wed, 22 Feb 2012 14:13:18 -0800 (PST) Received: from mr.google.com ([10.42.131.129]) by 10.42.131.129 with SMTP id z1mr34576025ics.53.1329948798837 (num_hops = 1); Wed, 22 Feb 2012 14:13:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.131.129 with SMTP id z1mr27807567ics.53.1329948798780; Wed, 22 Feb 2012 14:13:18 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.11.10 with SMTP id r10csp146487ibr; Wed, 22 Feb 2012 14:13:17 -0800 (PST) Received: by 10.216.132.94 with SMTP id n72mr78412wei.4.1329948795242; Wed, 22 Feb 2012 14:13:15 -0800 (PST) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [81.2.115.146]) by mx.google.com with ESMTPS id n9si22579928wed.22.2012.02.22.14.13.13 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Feb 2012 14:13:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) client-ip=81.2.115.146; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1S0KQx-0006Jx-NI; Wed, 22 Feb 2012 22:13:11 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, qemu-trivial@nongnu.org Subject: [PATCH] vl.c: Increase width of machine name column in "-M ?" output Date: Wed, 22 Feb 2012 22:13:11 +0000 Message-Id: <1329948791-24274-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 X-Gm-Message-State: ALoCoQlnmTCEr9l7PBflRVyyAEVuJhD5uJsZ1ZURIyq0NAoZVWI8CD3gbTCn1V4xkOCXJAjJlfWS Increase the width of the column used for the machine name in the "-M ?" output from 10 to 20 spaces. This fixes the formatting so it looks nice for architectures where a few of the machines have overly long names. (Our current longest machine name is "petalogix-s3adsp1800" with "realview-eb-mpcore" not far behind.) Signed-off-by: Peter Maydell --- vl.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vl.c b/vl.c index 7a8cc08..f211c71 100644 --- a/vl.c +++ b/vl.c @@ -1999,9 +1999,9 @@ static QEMUMachine *machine_parse(const char *name) printf("Supported machines are:\n"); for (m = first_machine; m != NULL; m = m->next) { if (m->alias) { - printf("%-10s %s (alias of %s)\n", m->alias, m->desc, m->name); + printf("%-20s %s (alias of %s)\n", m->alias, m->desc, m->name); } - printf("%-10s %s%s\n", m->name, m->desc, + printf("%-20s %s%s\n", m->name, m->desc, m->is_default ? " (default)" : ""); } exit(!name || *name != '?');