X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=sys-utils%2Fldattach.c;h=2a24b3d6f414622c58972da9e5df25752b16258a;hb=9abd5e4b99fb2d78d8dbbb9144aef68972c65e83;hp=9c67eeec80ffdcaf498273c25038f47f9e3128d4;hpb=54c8608f7ccd4edc5f8c74ab4485950bbf045b28;p=thirdparty%2Futil-linux.git diff --git a/sys-utils/ldattach.c b/sys-utils/ldattach.c index 9c67eeec80..2a24b3d6f4 100644 --- a/sys-utils/ldattach.c +++ b/sys-utils/ldattach.c @@ -1,17 +1,14 @@ -/* line discipline loading daemon - * open a serial device and attach a line discipline on it +/* + * SPDX-License-Identifier: GPL-2.0-or-later * - * Usage: - * ldattach GIGASET_M101 /dev/ttyS0 + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * - * ===================================================================== - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * ===================================================================== + * Line discipline loading daemon open a serial device and attach a line + * discipline on it. */ - #include #include #include @@ -217,7 +214,7 @@ static void __attribute__((__noreturn__)) usage(void) fputs(_(" -i, --iflag [-] set input mode flag\n"), out); fputs(USAGE_SEPARATOR, out); - printf(USAGE_HELP_OPTIONS(25)); + fprintf(out, USAGE_HELP_OPTIONS(25)); fputs(_("\nKnown names:\n"), out); print_table(out, ld_discs); @@ -226,7 +223,7 @@ static void __attribute__((__noreturn__)) usage(void) fputs(_("\nKnown names:\n"), out); print_table(out, ld_iflags); - printf(USAGE_MAN_TAIL("ldattach(8)")); + fprintf(out, USAGE_MAN_TAIL("ldattach(8)")); exit(EXIT_SUCCESS); }