[PATCH 6/6] devtools: add quiet mode in uAPI script
Thomas Monjalon
thomas at monjalon.net
Mon Sep 8 11:41:18 CEST 2025
03/09/2025 15:54, Maxime Coquelin:
> On 8/27/25 10:21 AM, Thomas Monjalon wrote:
> > Most messages from the Linux uAPI script are not useful
> > when running the script in a regular fashion.
> > The quiet mode (option -q) is added to output only error messages if any.
> >
> > Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> > ---
> > devtools/linux-uapi.sh | 26 +++++++++++++++-----------
> > 1 file changed, 15 insertions(+), 11 deletions(-)
> >
>
>
> You forgot to update print_usage().
Oops, I'm adding this:
print_usage()
{
- echo "Usage: $(basename $0) [-h] [-i FILE] [-u VERSION] [-c]"
+ echo "Usage: $(basename $0) [-h] [-i FILE] [-u VERSION] [-c] [-q]"
echo "-i FILE import Linux header file. E.g. linux/vfio.h"
echo "-u VERSION update imported list of Linux headers to a given version. E.g. v6.10"
echo "-c check headers are valid"
+ echo "-q quiet mode"
}
More information about the dev
mailing list