From: "tbaeder at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug server/26839] Systemtap build failures with clang
Date: Mon, 18 Jan 2021 12:06:12 +0000 [thread overview]
Message-ID: <bug-26839-6586-bgG0lCb2aj@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-26839-6586@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=26839
--- Comment #6 from Timm Bäder <tbaeder at redhat dot com> ---
Adding the GCC diagnostic pragmas to the printf-like functions was wrong btw
and just adding the appropriate __attribute__((format(printf, x, y)))
attributes is better, fixes the problems with clang and gives us better error
reporting.
It also shows a few problems with the current un-annotated functions like this
one in staprun/relay.c:
--- a/staprun/relay.c
+++ b/staprun/relay.c
@@ -272,7 +272,7 @@ static void switchfile_handler(int sig)
pthread_mutex_lock(&mutex[avail_cpus[i]]);
if (reader[avail_cpus[i]] && switch_file[avail_cpus[i]]) {
pthread_mutex_unlock(&mutex[avail_cpus[i]]);
- dbug(2, "file switching is progressing, signal
ignored.\n", sig);
+ dbug(2, "file switching is progressing, signal %d
ignored.\n", sig);
return;
}
pthread_mutex_unlock(&mutex[avail_cpus[i]]);
diff --git a/staprun/staprun.h b/staprun/staprun.h
Frank, do you have an opinion about the printsig() issue? Or should I just post
the patches I already have?
Thanks,
Timm
--
You are receiving this mail because:
You are the assignee for the bug.
next prev parent reply other threads:[~2021-01-18 12:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-04 8:27 [Bug server/26839] New: " tbaeder at redhat dot com
2020-11-05 1:11 ` [Bug server/26839] " fche at redhat dot com
2020-11-05 1:23 ` fche at redhat dot com
2020-11-05 9:21 ` tbaeder at redhat dot com
2020-11-23 19:12 ` tstellar at redhat dot com
2020-11-24 7:52 ` tbaeder at redhat dot com
2021-01-18 12:06 ` tbaeder at redhat dot com [this message]
2021-01-18 15:10 ` tstellar at redhat dot com
2021-05-11 12:00 ` tbaeder at redhat dot com
2021-05-13 2:17 ` amerey at redhat dot com
2021-05-14 7:57 ` tbaeder at redhat dot com
2021-05-19 21:46 ` amerey at redhat dot com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-26839-6586-bgG0lCb2aj@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=systemtap@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).