Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 548172 | Differences between
and this patch

Collapse All | Expand All

(-)./modules/system-source/system-source.c.orig (-5 / +5 lines)
Lines 176-191 Link Here
176
static void
176
static void
177
system_sysblock_add_linux_kmsg(GString *sysblock)
177
system_sysblock_add_linux_kmsg(GString *sysblock)
178
{
178
{
179
  const gchar *kmsg = "/proc/kmsg";
179
  gchar const *kmsg = "/dev/kmsg";
180
  int fd;
180
  int fd;
181
  const gchar *format = NULL;
181
  gchar const *format = "linux-kmsg";
182
  if ((fd = open("/dev/kmsg", O_RDONLY)) != -1)
182
  if ((fd = open("/proc/kmsg", O_RDONLY)) != -1)
183
    {
183
    {
184
      if ((lseek (fd, 0, SEEK_END) != -1) && _is_fd_pollable(fd))
184
      if ((lseek (fd, 0, SEEK_END) != -1) && _is_fd_pollable(fd))
185
        {
185
        {
186
          kmsg = "/dev/kmsg";
186
          kmsg = "/proc/kmsg";
187
          format = "linux-kmsg";
187
          format = NULL;
188
        }
188
        }
189
      close (fd);
189
      close (fd);
190
    }
190
    }

Return to bug 548172