commit | 4ac23d27a5e5dea73c4db4a4fcc46a6afe645bd0 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Thu May 23 21:14:03 2013 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Thu May 23 21:14:03 2013 +0200 |
tree | 20dd28b856c88af24faef1f79c858722346542c9 | |
parent | d2507043dbe51b657f25a0149c1f64a794e18b47 [diff] [blame] |
parse: if profile is set, only show options relevant to the profile Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/parse.c b/parse.c index b8ec3aa..f54dae6 100644 --- a/parse.c +++ b/parse.c
@@ -1086,6 +1086,8 @@ continue; if (!exec_profile && o->prof_name) continue; + if (exec_profile && !(o->prof_name && !strcmp(exec_profile, o->prof_name))) + continue; if (name) { if (!strcmp(name, o->name) ||