From b651df55102ba0867ad5050f6942d9c04c87efd9 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 17 Mar 2005 23:10:44 +0000 Subject: 2005-03-17 Tom Parker * dbus/dbus-userdb.c (_dbus_user_database_lookup): Don't print DBUS_UID_UNSET; instead print passed username. * dbus/dbus-userdb-util.c (_dbus_user_database_lookup_group): Ditto for DBUS_GID_UNSET and groupname. --- dbus/dbus-userdb-util.c | 8 ++++++-- dbus/dbus-userdb.c | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'dbus') diff --git a/dbus/dbus-userdb-util.c b/dbus/dbus-userdb-util.c index 3d51f71d..34763219 100644 --- a/dbus/dbus-userdb-util.c +++ b/dbus/dbus-userdb-util.c @@ -208,8 +208,12 @@ _dbus_user_database_lookup_group (DBusUserDatabase *db, } else { - _dbus_verbose ("No cache for GID "DBUS_GID_FORMAT"\n", - gid); + if (gid != DBUS_GID_UNSET) + _dbus_verbose ("No cache for GID "DBUS_GID_FORMAT"\n", + gid); + else + _dbus_verbose ("No cache for groupname \"%s\"\n", + _dbus_string_get_const_data (groupname)); info = dbus_new0 (DBusGroupInfo, 1); if (info == NULL) diff --git a/dbus/dbus-userdb.c b/dbus/dbus-userdb.c index 85ee1b67..7a71fe9b 100644 --- a/dbus/dbus-userdb.c +++ b/dbus/dbus-userdb.c @@ -101,8 +101,12 @@ _dbus_user_database_lookup (DBusUserDatabase *db, } else { - _dbus_verbose ("No cache for UID "DBUS_UID_FORMAT"\n", - uid); + if (uid != DBUS_UID_UNSET) + _dbus_verbose ("No cache for UID "DBUS_UID_FORMAT"\n", + uid); + else + _dbus_verbose ("No cache for user \"%s\"\n", + _dbus_string_get_const_data (username)); info = dbus_new0 (DBusUserInfo, 1); if (info == NULL) -- cgit v1.2.1