Skip to content

Commit 2482920

Browse files
committed
Use abseil logging in allocd_utils
This was missed in google#1955 . Changing the log header additionally caused a new unrelated error, which is also fixed: ``` In file included from allocd/alloc_utils.cpp:16: allocd/alloc_utils.h:28:10: error: module //allocd:alloc_utils does not depend on a module exporting 'cuttlefish/common/libs/fs/shared_fd.h' 28 | #include "cuttlefish/common/libs/fs/shared_fd.h" | ^ 1 error generated. ``` Bug: b/321795781
1 parent 415f008 commit 2482920

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

base/cvd/allocd/BUILD.bazel

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ cc_library(
1111
"alloc_utils.h",
1212
],
1313
deps = [
14-
"//cuttlefish/common/libs/fs",
1514
"//cuttlefish/host/commands/cvd/utils:common",
1615
"//cuttlefish/host/libs/config:logging",
17-
"//libbase",
16+
"@abseil-cpp//absl/log",
1817
"@abseil-cpp//absl/strings:str_format",
1918
],
2019
)

base/cvd/allocd/alloc_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <fstream>
2020
#include <string_view>
2121

22-
#include "android-base/logging.h"
22+
#include "absl/log/log.h"
2323
#include "absl/strings/str_format.h"
2424

2525
#include "cuttlefish/host/commands/cvd/utils/common.h"

base/cvd/allocd/alloc_utils.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
#include <sstream>
2626
#include <string_view>
2727

28-
#include "cuttlefish/common/libs/fs/shared_fd.h"
29-
3028
namespace cuttlefish {
3129

3230
constexpr char kEbtablesName[] = "ebtables";

0 commit comments

Comments
 (0)