On Sun, Apr 09, 2023 at 10:31:28AM +0100, Stuart Henderson wrote: > On 2023/04/09 09:50, Landry Breuil wrote: > > Hi, > > > > here's a smallish patch to silence some annoying warnings i have in my > > logs on my mozilla builder at each build, which is running headless and > > doesnt have a notification daemon running: > > > > Apr 9 07:07:05 c64 notify-send: vfprintf %s NULL in "Using sever %s %s, > > v%s - Supporting Notification Spec %s" > > Apr 9 07:07:05 c64 last message repeated 3 times > > Apr 9 07:12:16 c64 notify-send: vfprintf %s NULL in "Using sever %s %s, > > v%s - Supporting Notification Spec %s" > > Apr 9 07:12:16 c64 last message repeated 3 times > > These are *all* over the place in various software, it can result in a > huge amount of crap sent to syslog. Example from the first machine running > GNOME I looked at below - if I look harder there's a good chance I'll > find some with "last message repeated" counts in the hundreds. > > Basically it seems that g_debug callers expect to be able to use NULL > srrings and it would be huge whack-a-mole to clean them up. I wonder > if it might be better to do something to catch these in g_debug() and > avoid passing the NULL to vfprintf.
Ah that would be much better indeed.