state_file: fixed debug messages

Print "Loading" instead of "Saving" in state_file_read().  Added debug
message to state_file_write().
This commit is contained in:
Max Kellermann 2009-07-15 14:29:30 +02:00
parent 297d749fc8
commit 889b1c1eae

View File

@ -44,6 +44,8 @@ state_file_write(void)
if (state_file_path == NULL) if (state_file_path == NULL)
return; return;
g_debug("Saving state file %s", state_file_path);
fp = fopen(state_file_path, "w"); fp = fopen(state_file_path, "w");
if (G_UNLIKELY(!fp)) { if (G_UNLIKELY(!fp)) {
g_warning("failed to create %s: %s", g_warning("failed to create %s: %s",
@ -65,7 +67,7 @@ state_file_read(void)
assert(state_file_path != NULL); assert(state_file_path != NULL);
g_debug("Saving state file"); g_debug("Loading state file %s", state_file_path);
fp = fopen(state_file_path, "r"); fp = fopen(state_file_path, "r");
if (G_UNLIKELY(!fp)) { if (G_UNLIKELY(!fp)) {