mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] Re: possible bug in syslog
@ 2024-06-13 14:51 erny hombre
  2024-06-13 15:29 ` Rich Felker
  0 siblings, 1 reply; 2+ messages in thread
From: erny hombre @ 2024-06-13 14:51 UTC (permalink / raw)
  To: musl

Hello,

Rich wrote:
> This assertion itself is not valid; the whole reason a LOG_MAKEPRI macro exists is that it's not guaranteed that the packing be simple or.

Here (https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/functions/syslog.html) I found this:
Values of the priority argument are formed by OR'ing together a severity-level value and an optional facility value.

So I think a simple or should be correct.

Regards
Erwin

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [musl] Re: possible bug in syslog
  2024-06-13 14:51 [musl] Re: possible bug in syslog erny hombre
@ 2024-06-13 15:29 ` Rich Felker
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2024-06-13 15:29 UTC (permalink / raw)
  To: erny hombre; +Cc: musl

On Thu, Jun 13, 2024 at 04:51:59PM +0200, erny hombre wrote:
> Hello,
> 
> Rich wrote:
> > This assertion itself is not valid; the whole reason a LOG_MAKEPRI
> > macro exists is that it's not guaranteed that the packing be
> > simple or.
> 
> Here
> (https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/functions/syslog.html)
> I found this:
> Values of the priority argument are formed by OR'ing together a
> severity-level value and an optional facility value.
> 
> So I think a simple or should be correct.

Oh, I completely missed that and thought this was an extension.
Indeed, it's the LOG_MAKEPRI thing that's nonstandard way to do
something that already has a standard way to do it, and since our
definition of it is wrong, it just needs to be fixed.

Rich

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-13 15:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-13 14:51 [musl] Re: possible bug in syslog erny hombre
2024-06-13 15:29 ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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).