* syslog(3) inconsistency
@ 2017-03-23 18:37 Ian Abbott
[not found] ` <8ab6f0a9-1a71-c776-80a2-5913e941aaf2-GUHe90Wt2aFaa/9Udqfwiw@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Ian Abbott @ 2017-03-23 18:37 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Hi,
The first parameter of `syslog()` is called `priority` in the man-page,
except in the breakdown of the possible log levels, where it is called
`level`.
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti-GUHe90Wt2aFaa/9Udqfwiw@public.gmane.org> )=-
-=( Web: http://www.mev.co.uk/ )=-
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: syslog(3) inconsistency
[not found] ` <8ab6f0a9-1a71-c776-80a2-5913e941aaf2-GUHe90Wt2aFaa/9Udqfwiw@public.gmane.org>
@ 2017-03-24 14:40 ` Michael Kerrisk (man-pages)
[not found] ` <4f302a52-1098-2b1a-baac-732b15784ee4-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-03-24 16:48 ` walter harms
1 sibling, 1 reply; 7+ messages in thread
From: Michael Kerrisk (man-pages) @ 2017-03-24 14:40 UTC (permalink / raw)
To: Ian Abbott
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
linux-man-u79uwXL29TY76Z2rM5mHXA
Hello Ian,
On 03/23/2017 07:37 PM, Ian Abbott wrote:
> Hi,
>
> The first parameter of `syslog()` is called `priority` in the man-page,
> except in the breakdown of the possible log levels, where it is called
> `level`.
Your report doesn't say clearly which pieces of text you find to
be incorrect, but I wonder if you have missed this sentence in the
man page:
The priority argument is formed by ORing the facility and the
level values (explained below).
If you still think there's a problem in the man page, could you please
describe the problem in more detail.
Cheers,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: syslog(3) inconsistency
[not found] ` <8ab6f0a9-1a71-c776-80a2-5913e941aaf2-GUHe90Wt2aFaa/9Udqfwiw@public.gmane.org>
2017-03-24 14:40 ` Michael Kerrisk (man-pages)
@ 2017-03-24 16:48 ` walter harms
1 sibling, 0 replies; 7+ messages in thread
From: walter harms @ 2017-03-24 16:48 UTC (permalink / raw)
To: Ian Abbott; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Am 23.03.2017 19:37, schrieb Ian Abbott:
> Hi,
>
> The first parameter of `syslog()` is called `priority` in the man-page,
> except in the breakdown of the possible log levels, where it is called
> `level`.
>
Hi Ia,
do you thing that this example would be helpful ?
re,
wh
#include <syslog.h>
int main()
{
openlog("prgname",LOG_PERROR|LOG_NDELAY,LOG_LOCAL0);
syslog(LOG_LOCAL0|LOG_DEBUG,"hello error");
closelog();
return 0;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: syslog(3) inconsistency
[not found] ` <4f302a52-1098-2b1a-baac-732b15784ee4-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2017-03-24 17:26 ` Ian Abbott
[not found] ` <bee344ea-5734-8106-183c-4530e2d245d6-GUHe90Wt2aFaa/9Udqfwiw@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Ian Abbott @ 2017-03-24 17:26 UTC (permalink / raw)
To: Michael Kerrisk (man-pages); +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
On 24/03/2017 14:40, Michael Kerrisk (man-pages) wrote:
> Hello Ian,
>
> On 03/23/2017 07:37 PM, Ian Abbott wrote:
>> Hi,
>>
>> The first parameter of `syslog()` is called `priority` in the man-page,
>> except in the breakdown of the possible log levels, where it is called
>> `level`.
>
> Your report doesn't say clearly which pieces of text you find to
> be incorrect, but I wonder if you have missed this sentence in the
> man page:
>
> The priority argument is formed by ORing the facility and the
> level values (explained below).
Oh, that's it! My mistake. Apologies for the noise.
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti-GUHe90Wt2aFaa/9Udqfwiw@public.gmane.org> )=-
-=( Web: http://www.mev.co.uk/ )=-
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: syslog(3) inconsistency
[not found] ` <bee344ea-5734-8106-183c-4530e2d245d6-GUHe90Wt2aFaa/9Udqfwiw@public.gmane.org>
@ 2017-03-26 12:46 ` Michael Kerrisk (man-pages)
[not found] ` <5d6ef264-1afe-0059-38fb-c7ebe7657b72-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Michael Kerrisk (man-pages) @ 2017-03-26 12:46 UTC (permalink / raw)
To: Ian Abbott
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
linux-man-u79uwXL29TY76Z2rM5mHXA, walter harms
On 03/24/2017 06:26 PM, Ian Abbott wrote:
> On 24/03/2017 14:40, Michael Kerrisk (man-pages) wrote:
>> Hello Ian,
>>
>> On 03/23/2017 07:37 PM, Ian Abbott wrote:
>>> Hi,
>>>
>>> The first parameter of `syslog()` is called `priority` in the man-page,
>>> except in the breakdown of the possible log levels, where it is called
>>> `level`.
>>
>> Your report doesn't say clearly which pieces of text you find to
>> be incorrect, but I wonder if you have missed this sentence in the
>> man page:
>>
>> The priority argument is formed by ORing the facility and the
>> level values (explained below).
>
> Oh, that's it! My mistake. Apologies for the noise.
So, I think the metapoint brought out by the comments of you and
Walter is that the text of the page is not really organized in a
way that is easy to parse. (And a few notable details were also
missing, I see.) I've reworked the page quite a bit to (I hope)
make the information easier to parse. The revised version
is already pushed to Git, in case you want to take a look.
Cheers,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: syslog(3) inconsistency
[not found] ` <5d6ef264-1afe-0059-38fb-c7ebe7657b72-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2017-03-27 9:34 ` Ian Abbott
[not found] ` <68bdb70e-a70f-19a7-d85d-922c18d60833-GUHe90Wt2aFaa/9Udqfwiw@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Ian Abbott @ 2017-03-27 9:34 UTC (permalink / raw)
To: Michael Kerrisk (man-pages)
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, walter harms
On 26/03/17 13:46, Michael Kerrisk (man-pages) wrote:
> On 03/24/2017 06:26 PM, Ian Abbott wrote:
>> On 24/03/2017 14:40, Michael Kerrisk (man-pages) wrote:
>>> Hello Ian,
>>>
>>> On 03/23/2017 07:37 PM, Ian Abbott wrote:
>>>> Hi,
>>>>
>>>> The first parameter of `syslog()` is called `priority` in the man-page,
>>>> except in the breakdown of the possible log levels, where it is called
>>>> `level`.
>>>
>>> Your report doesn't say clearly which pieces of text you find to
>>> be incorrect, but I wonder if you have missed this sentence in the
>>> man page:
>>>
>>> The priority argument is formed by ORing the facility and the
>>> level values (explained below).
>>
>> Oh, that's it! My mistake. Apologies for the noise.
>
> So, I think the metapoint brought out by the comments of you and
> Walter is that the text of the page is not really organized in a
> way that is easy to parse. (And a few notable details were also
> missing, I see.) I've reworked the page quite a bit to (I hope)
> make the information easier to parse. The revised version
> is already pushed to Git, in case you want to take a look.
Well I can tell you how my mental process worked in this case if it
helps. Basically, I'd skipped over the bit that described the
'priority' argument as being composed of two parts OR'ed together, and
went straight to what I thought was a description of each function
argument, so I thought the description of the 'level' was really a
description of the 'priority' argument. A sentence similar to "This
forms part of the 'priority' argument, together with the 'facility'
value." would have helped me, but then again, so would reading the man
page properly!
The description of 'level' mentions 'setlogmask(3)', but that man page
calls the levels "priorities".
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti-GUHe90Wt2aFaa/9Udqfwiw@public.gmane.org> )=-
-=( Web: http://www.mev.co.uk/ )=-
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: syslog(3) inconsistency
[not found] ` <68bdb70e-a70f-19a7-d85d-922c18d60833-GUHe90Wt2aFaa/9Udqfwiw@public.gmane.org>
@ 2017-03-27 9:49 ` walter harms
0 siblings, 0 replies; 7+ messages in thread
From: walter harms @ 2017-03-27 9:49 UTC (permalink / raw)
To: linux-man-u79uwXL29TY76Z2rM5mHXA
Am 27.03.2017 11:34, schrieb Ian Abbott:
> On 26/03/17 13:46, Michael Kerrisk (man-pages) wrote:
>> On 03/24/2017 06:26 PM, Ian Abbott wrote:
>>> On 24/03/2017 14:40, Michael Kerrisk (man-pages) wrote:
>>>> Hello Ian,
>>>>
>>>> On 03/23/2017 07:37 PM, Ian Abbott wrote:
>>>>> Hi,
>>>>>
>>>>> The first parameter of `syslog()` is called `priority` in the
>>>>> man-page,
>>>>> except in the breakdown of the possible log levels, where it is called
>>>>> `level`.
>>>>
>>>> Your report doesn't say clearly which pieces of text you find to
>>>> be incorrect, but I wonder if you have missed this sentence in the
>>>> man page:
>>>>
>>>> The priority argument is formed by ORing the facility and the
>>>> level values (explained below).
>>>
>>> Oh, that's it! My mistake. Apologies for the noise.
>>
>> So, I think the metapoint brought out by the comments of you and
>> Walter is that the text of the page is not really organized in a
>> way that is easy to parse. (And a few notable details were also
>> missing, I see.) I've reworked the page quite a bit to (I hope)
>> make the information easier to parse. The revised version
>> is already pushed to Git, in case you want to take a look.
>
> Well I can tell you how my mental process worked in this case if it
> helps. Basically, I'd skipped over the bit that described the
> 'priority' argument as being composed of two parts OR'ed together, and
> went straight to what I thought was a description of each function
> argument, so I thought the description of the 'level' was really a
> description of the 'priority' argument. A sentence similar to "This
> forms part of the 'priority' argument, together with the 'facility'
> value." would have helped me, but then again, so would reading the man
> page properly!
>
> The description of 'level' mentions 'setlogmask(3)', but that man page
> calls the levels "priorities".
>
Do you thing an other word than "priorities" would help ?
Also I have the feeling that the lists below and the fact that you are
looking for a parameter, draws the attention quickly to these list.
My next idea was the example i posted. For me ist very simple do you thing
that would clarify things more easy ?
re,
wh
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-03-27 9:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-23 18:37 syslog(3) inconsistency Ian Abbott
[not found] ` <8ab6f0a9-1a71-c776-80a2-5913e941aaf2-GUHe90Wt2aFaa/9Udqfwiw@public.gmane.org>
2017-03-24 14:40 ` Michael Kerrisk (man-pages)
[not found] ` <4f302a52-1098-2b1a-baac-732b15784ee4-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-03-24 17:26 ` Ian Abbott
[not found] ` <bee344ea-5734-8106-183c-4530e2d245d6-GUHe90Wt2aFaa/9Udqfwiw@public.gmane.org>
2017-03-26 12:46 ` Michael Kerrisk (man-pages)
[not found] ` <5d6ef264-1afe-0059-38fb-c7ebe7657b72-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-03-27 9:34 ` Ian Abbott
[not found] ` <68bdb70e-a70f-19a7-d85d-922c18d60833-GUHe90Wt2aFaa/9Udqfwiw@public.gmane.org>
2017-03-27 9:49 ` walter harms
2017-03-24 16:48 ` walter harms
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).