Skip to contentSkip to conversation

Philippe Gerum : lib/cobalt: use common console message prefix

Xenomai Gilles Chanteperdrix 2 participants 2 messages May 11, 2013 – May 12, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Review

Quoted 4 lines · git repository hosting

static void sigill_handler(int sig)
{

(quoted diff) +1 -1
-	fprintf(stderr, "Xenomai disabled in kernel?\n");
+	const char *m = "Xenomai disabled in kernel?\n";

I believe you want static const char m[] =
otherwise sizeof(m) will be 4 or 8.

Signature · 1 line
                                                                Gilles.
#2 lore raw
Quoted 11 lines · Gilles Chanteperdrix

Review

Quoted 4 lines · git repository hosting
  static void sigill_handler(int sig)
  {
(quoted diff) +1 -1
-	fprintf(stderr, "Xenomai disabled in kernel?\n");
+	const char *m = "Xenomai disabled in kernel?\n";

I believe you want static const char m[] =
otherwise sizeof(m) will be 4 or 8.

Fixed, thanks.

Signature · 1 line
Philippe.