Rename coredump scan function.
authorWilliam Douglas <william.douglas@intel.com>
Wed, 3 Aug 2011 23:05:11 +0000 (16:05 -0700)
committerWilliam Douglas <william.douglas@intel.com>
Wed, 3 Aug 2011 23:05:11 +0000 (16:05 -0700)
Doing this rename for clarity since scan_dmesg doesn't scan
dmesg and the kernel oops code actually does so it will take
that name.
Signed-off-by: William Douglas <william.douglas@intel.com>
src/coredump.c
src/corewatcher.c
src/corewatcher.h

index ead3407..1cdb044 100644 (file)
@@ -1160,7 +1160,7 @@ static void reprocess_corefile(char *fullpath)
                fprintf(stderr, "Couldn't start up gdb extract core thread\n");
 }
 
-int scan_dmesg(void __unused *unused)
+int scan_corefolders(void __unused *unused)
 {
        DIR *dir = NULL;
        struct dirent *entry = NULL;
index 5f5175e..65501cf 100644 (file)
@@ -307,7 +307,7 @@ int main(int argc, char**argv)
                sleep(20);
 
        /* we scan dmesg before /var/log/messages; dmesg is a more accurate source normally */
-       scan_dmesg(NULL);
+       scan_corefolders(NULL);
        /* during boot... don't go too fast and slow the system down */
 
        if (testmode) {
@@ -328,7 +328,7 @@ int main(int argc, char**argv)
 
        /* now, start polling for oopses to occur */
 
-       g_timeout_add_seconds(10, scan_dmesg, NULL);
+       g_timeout_add_seconds(10, scan_corefolders, NULL);
 
        g_main_loop_run(loop);
        dbus_bus_remove_match(bus, "type='signal',interface='org.corewatcher.submit.ping'", &error);
index b836746..623f5ee 100644 (file)
@@ -74,7 +74,7 @@ extern char *replace_name(char *filename, char *replace, char *new);
 
 /* coredump.c */
 extern int move_core(char *fullpath, char *ext);
-extern int scan_dmesg(void * unused);
+extern int scan_corefolders(void * unused);
 extern char *strip_directories(char *fullpath);
 extern char *get_core_filename(char *filename, char *ext);
 extern void remove_pid_from_hash(char *fullpath, GHashTable *ht);