[gnome-commander] Fix debug logging of memory positions
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Fix debug logging of memory positions
- Date: Sun, 20 Jun 2021 21:58:01 +0000 (UTC)
commit 7e53b9ae05ddea9dba1599c7771274cb65462c96
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sun Jun 20 21:01:44 2021 +0200
Fix debug logging of memory positions
src/gnome-cmd-con-device.h | 2 +-
src/gnome-cmd-con.cc | 6 +++---
src/gnome-cmd-dir.cc | 8 ++++----
src/gnome-cmd-file.cc | 6 +++---
4 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/src/gnome-cmd-con-device.h b/src/gnome-cmd-con-device.h
index 515cb9edb..bda987990 100644
--- a/src/gnome-cmd-con-device.h
+++ b/src/gnome-cmd-con-device.h
@@ -1,4 +1,4 @@
-/**
+/**
* @file gnome-cmd-con-device.h
* @copyright (C) 2001-2006 Marcus Bjurman\n
* @copyright (C) 2007-2012 Piotr Eljasiak\n
diff --git a/src/gnome-cmd-con.cc b/src/gnome-cmd-con.cc
index e38102ec8..8876d3a0b 100644
--- a/src/gnome-cmd-con.cc
+++ b/src/gnome-cmd-con.cc
@@ -553,7 +553,7 @@ void gnome_cmd_con_add_to_cache (GnomeCmdCon *con, GnomeCmdDir *dir)
if (!con->priv->all_dirs_map)
con->priv->all_dirs_map = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, nullptr);
- DEBUG ('k', "ADDING 0x%p %s to the cache\n", dir, uri_str);
+ DEBUG ('k', "ADDING %p %s to the cache\n", dir, uri_str);
g_hash_table_insert (con->priv->all_dirs_map, uri_str, dir);
}
@@ -565,7 +565,7 @@ void gnome_cmd_con_remove_from_cache (GnomeCmdCon *con, GnomeCmdDir *dir)
gchar *uri_str = GNOME_CMD_FILE (dir)->get_uri_str();
- DEBUG ('k', "REMOVING 0x%p %s from the cache\n", dir, uri_str);
+ DEBUG ('k', "REMOVING %p %s from the cache\n", dir, uri_str);
g_hash_table_remove (con->priv->all_dirs_map, uri_str);
g_free (uri_str);
}
@@ -594,7 +594,7 @@ GnomeCmdDir *gnome_cmd_con_cache_lookup (GnomeCmdCon *con, const gchar *uri_str)
}
if (dir)
- DEBUG ('k', "FOUND 0x%p %s in the hash-table, reusing it!\n", dir, uri_str);
+ DEBUG ('k', "FOUND %p %s in the hash-table, reusing it!\n", dir, uri_str);
else
DEBUG ('k', "FAILED to find %s in the hash-table\n", uri_str);
diff --git a/src/gnome-cmd-dir.cc b/src/gnome-cmd-dir.cc
index 776913283..c4a085653 100644
--- a/src/gnome-cmd-dir.cc
+++ b/src/gnome-cmd-dir.cc
@@ -130,7 +130,7 @@ static void gnome_cmd_dir_finalize (GObject *object)
{
GnomeCmdDir *dir = GNOME_CMD_DIR (object);
- DEBUG ('d', "dir destroying 0x%p %s\n", dir, dir->priv->path->get_path());
+ DEBUG ('d', "dir destroying %p %s\n", dir, dir->priv->path->get_path());
gnome_cmd_con_remove_from_cache (dir->priv->con, dir);
@@ -906,7 +906,7 @@ void gnome_cmd_dir_start_monitoring (GnomeCmdDir *dir)
if (result == GNOME_VFS_OK)
DEBUG('n', "Added monitor to 0x%x %s\n", dir, uri_str);
else
- DEBUG ('n', "Failed to add monitor to 0x%p %s: %s\n", dir, uri_str, gnome_vfs_result_to_string
(result));
+ DEBUG ('n', "Failed to add monitor to %p %s: %s\n", dir, uri_str, gnome_vfs_result_to_string
(result));
g_free (uri_str);
}
@@ -929,10 +929,10 @@ void gnome_cmd_dir_cancel_monitoring (GnomeCmdDir *dir)
{
GnomeVFSResult result = gnome_vfs_monitor_cancel (dir->priv->monitor_handle);
if (result == GNOME_VFS_OK)
- DEBUG('n', "Removed monitor from 0x%p %s\n",
+ DEBUG('n', "Removed monitor from %p %s\n",
dir, GNOME_CMD_FILE (dir)->get_uri_str());
else
- DEBUG('n', "Failed to remove monitor from 0x%p %s: %s\n",
+ DEBUG('n', "Failed to remove monitor from %p %s: %s\n",
dir, GNOME_CMD_FILE (dir)->get_uri_str(),
gnome_vfs_result_to_string (result));
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index e992222fc..2726ccb5e 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -105,7 +105,7 @@ static void gnome_cmd_file_finalize (GObject *object)
delete f->metadata;
if (f->gFileInfo && strcmp(g_file_info_get_display_name(f->gFileInfo), "..") != 0)
- DEBUG ('f', "file destroying 0x%p %s\n", f, g_file_info_get_display_name(f->gFileInfo));
+ DEBUG ('f', "file destroying %p %s\n", f, g_file_info_get_display_name(f->gFileInfo));
g_free (f->collate_key);
if (f->info)
@@ -329,7 +329,7 @@ GnomeCmdFile *GnomeCmdFile::ref()
char c = GNOME_CMD_IS_DIR (this) ? 'd' : 'f';
- DEBUG (c, "refing: 0x%p %s to %d\n", this, g_file_info_get_display_name(gFileInfo), priv->ref_cnt);
+ DEBUG (c, "refing: %p %s to %d\n", this, g_file_info_get_display_name(gFileInfo), priv->ref_cnt);
return this;
}
@@ -341,7 +341,7 @@ void GnomeCmdFile::unref()
char c = GNOME_CMD_IS_DIR (this) ? 'd' : 'f';
- DEBUG (c, "un-refing: 0x%p %s to %d\n", this, g_file_info_get_display_name(gFileInfo), priv->ref_cnt);
+ DEBUG (c, "un-refing: %p %s to %d\n", this, g_file_info_get_display_name(gFileInfo), priv->ref_cnt);
if (priv->ref_cnt < 1)
g_object_unref (this);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]