[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Prefix for warnings (was: device-dependent warnings)
From: |
Alejandro Colomar |
Subject: |
Prefix for warnings (was: device-dependent warnings) |
Date: |
Wed, 3 May 2023 01:26:55 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 |
Hi Branden,
On 5/3/23 00:21, Alejandro Colomar wrote:
>
> troff:man3/unlocked_stdio.3:123: warning [p 2, 1.8i, div '3tbd1,0', 0.3i]:
> cannot break line
>
> an.tmac:man4/cciss.4:164: style: blank line in input
>
> man4/console_codes.4:324: warning: table wider than line length minus
> indentation
>
I find it more readable when there's one space between the program
that generates the warning and the file. That's what mandoc(1) does,
and in general, what any program that relies on perror(3) does (I'm
assuming mandoc(1) probably calls perror(3) or similar).
Compare:
mandoc: man8/unitd.8:6:2: WARNING: first section is not "NAME": Sh Name
troff:man3/unlocked_stdio.3:123: warning [p 2, 1.8i, div '3tbd1,0', 0.3i]:
cannot break line
I suggest adding such space, which BTW would allow you to call
perror(3) in some cases.
Cheers,
Alex
--
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
OpenPGP_signature
Description: OpenPGP digital signature
- Re: device-dependent warnings, G. Branden Robinson, 2023/05/02
- Re: device-dependent warnings, G. Branden Robinson, 2023/05/06
- Re: device-dependent warnings, Alejandro Colomar, 2023/05/07
- Re: device-dependent warnings, G. Branden Robinson, 2023/05/07
- Re: device-dependent warnings, Alejandro Colomar, 2023/05/08
- Re: device-dependent warnings, Alejandro Colomar, 2023/05/09
- Re: device-dependent warnings, Dave Kemper, 2023/05/09