Ranjan, > + kmsg_dump_rewind(&dumper.kdumper); > + while (kmsg_dump_get_line(&dumper.kdumper, 1, NULL, 0, NULL)) > + n++; > + > + lines = n; > + kmsg_dump_rewind(&dumper.kdumper); Ugh. This is something your userland stuff will have to handle. -- Martin K. Petersen Oracle Linux Engineering