[12/19] unix: bindmount -- Show details about queuer

Submitted by Cyrill Gorcunov on Sept. 14, 2018, 2:08 p.m.

Details

Message ID 20180914140842.6462-13-gorcunov@gmail.com
State New
Series "unix: Add support for bindmounted dgram sockets"
Headers show

Commit Message

Cyrill Gorcunov Sept. 14, 2018, 2:08 p.m.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
 criu/sk-unix.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Patch hide | download patch | download mbox

diff --git a/criu/sk-unix.c b/criu/sk-unix.c
index 9851b381911a..0e2ea4472280 100644
--- a/criu/sk-unix.c
+++ b/criu/sk-unix.c
@@ -2313,11 +2313,13 @@  int unix_prepare_bindmount(struct mount_info *mi)
 
 	list_for_each_entry(ui, &unix_mnt_sockets, mnt_list) {
 		if (ui->ue->mnt_id == mi->mnt_id) {
-			pr_info("bindmount: id %#x ino %d type %s state %s queuer %p peer %d (name %.*s dir %s)\n",
+			pr_info("bindmount: id %#x ino %d type %s state %s (queuer id %#x ino %d) peer %d (name %.*s dir %s)\n",
 				ui->ue->id, ui->ue->ino, socket_type_name(ui->ue->type),
-				tcp_state_name(ui->ue->state), ui->queuer, ui->ue->peer,
-				(int)ui->ue->name.len, ui->ue->name.data,
-				ui->name_dir ? ui->name_dir : "-");
+				tcp_state_name(ui->ue->state),
+				ui->queuer ? ui->queuer->ue->id : -1,
+				ui->queuer ? ui->queuer->ue->ino : -1,
+				ui->ue->peer, (int)ui->ue->name.len,
+				ui->ue->name.data, ui->name_dir ? ui->name_dir : "-");
 			break;
 		}
 	}