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
  gchar *kmsg = "/proc/kmsg";
179
  gchar *kmsg = "/dev/kmsg";
180
  int fd;
180
  int fd;
181
  gchar *format = NULL;
181
  gchar *format = "linux-kmsg";
182
182
183
  if ((fd = open("/dev/kmsg", O_RDONLY)) != -1)
183
  if ((fd = open("/proc/kmsg", O_RDONLY)) != -1)
184
    {
184
    {
185
      if ((lseek (fd, 0, SEEK_END) != -1) && _is_fd_pollable(fd))
185
      if ((lseek (fd, 0, SEEK_END) != -1) && _is_fd_pollable(fd))
186
        {
186
        {
187
          kmsg = "/dev/kmsg";
187
          kmsg = "/proc/kmsg";
188
          format = "linux-kmsg";
188
          format = NULL;
189
        }
189
        }
190
      close (fd);
190
      close (fd);
191
    }
191
    }

Return to bug 548172