Mesa (master): intel: aubinator: fix printing missing gen option

Lionel Landwerlin llandwerlin at kemper.freedesktop.org
Mon Oct 31 22:11:41 UTC 2016


Module: Mesa
Branch: master
Commit: 1b88760f8501f88db9155204d2ce35871e29752d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b88760f8501f88db9155204d2ce35871e29752d

Author: Lionel Landwerlin <llandwerlin at gmail.com>
Date:   Tue Oct 25 12:49:53 2016 +0100

intel: aubinator: fix printing missing gen option

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>

---

 src/intel/tools/aubinator.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c
index 67f1f0d..4fee53c 100644
--- a/src/intel/tools/aubinator.c
+++ b/src/intel/tools/aubinator.c
@@ -1125,7 +1125,7 @@ int main(int argc, char *argv[])
    int c, i;
    bool help = false, pager = true;
    char *input_file = NULL, *xml_path = NULL;
-   char gen_val[24];
+   char gen_val[24] = { 0, };
    const struct {
       const char *name;
       int pci_id;
@@ -1193,7 +1193,7 @@ int main(int argc, char *argv[])
    }
 
    if (gen == NULL) {
-      fprintf(stderr, "can't parse gen: %s, expected ivb, byt, hsw, "
+      fprintf(stderr, "can't parse gen: '%s', expected ivb, byt, hsw, "
                              "bdw, chv, skl, kbl or bxt\n", gen_val);
       exit(EXIT_FAILURE);
    }




More information about the mesa-commit mailing list