summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Douglas <william.douglas@intel.com>2011-08-03 16:05:11 -0700
committerWilliam Douglas <william.douglas@intel.com>2011-08-03 16:05:11 -0700
commita1f8f285b2e823de7067b78105ce8f0e45d45c5c (patch)
tree27ad7ad6d4ecf9b4d917be7245eebee026d1cbdb
parenta4f02441390d77ae68dc59ea5cce59429cad4934 (diff)
downloadcorewatcher-a1f8f285b2e823de7067b78105ce8f0e45d45c5c.tar.gz
corewatcher-a1f8f285b2e823de7067b78105ce8f0e45d45c5c.tar.bz2
corewatcher-a1f8f285b2e823de7067b78105ce8f0e45d45c5c.zip
Rename coredump scan function.
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>
-rw-r--r--src/coredump.c2
-rw-r--r--src/corewatcher.c4
-rw-r--r--src/corewatcher.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/coredump.c b/src/coredump.c
index ead3407..1cdb044 100644
--- a/src/coredump.c
+++ b/src/coredump.c
@@ -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;
diff --git a/src/corewatcher.c b/src/corewatcher.c
index 5f5175e..65501cf 100644
--- a/src/corewatcher.c
+++ b/src/corewatcher.c
@@ -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);
diff --git a/src/corewatcher.h b/src/corewatcher.h
index b836746..623f5ee 100644
--- a/src/corewatcher.h
+++ b/src/corewatcher.h
@@ -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);