From bdb5233f0c0534e2bc2008ec8c70f3707182d674 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 15 Jul 2020 11:55:40 -0700 Subject: [PATCH] Fix quoting of paths in auth code. Noticed looked at the log in http://b/160831491. Test: builds Change-Id: I95c595ba433a868dedeee8059cfba4c6de8ba91b --- adb/client/auth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adb/client/auth.cpp b/adb/client/auth.cpp index b674a8161..db4c47903 100644 --- a/adb/client/auth.cpp +++ b/adb/client/auth.cpp @@ -400,12 +400,12 @@ static void adb_auth_inotify_init(const std::set& paths) { for (const std::string& path : paths) { int wd = inotify_add_watch(infd, path.c_str(), IN_CREATE | IN_MOVED_TO); if (wd < 0) { - PLOG(ERROR) << "failed to inotify_add_watch on path '" << path; + PLOG(ERROR) << "failed to inotify_add_watch on path '" << path << "'"; continue; } g_monitored_paths[wd] = path; - LOG(INFO) << "watch descriptor " << wd << " registered for " << path; + LOG(INFO) << "watch descriptor " << wd << " registered for '" << path << "'"; } fdevent* event = fdevent_create(infd, adb_auth_inotify_update, nullptr);