diff options
author | 2018-05-25 12:57:04 -0700 | |
---|---|---|
committer | 2018-05-29 10:31:07 -0700 | |
commit | d5ee11a531ec0f6bf47ebfe9850a60e3c3e6308f (patch) | |
tree | e7324c73d6236e9acb0a073406856fb22e91caee /cmds/lshal/TableEntry.cpp | |
parent | 2e41461725369ee92a03d9037d472db625472c2b (diff) |
lshal: Released column is now Y/N/?
Y: released
N: unreleased
?: unknown
Test: lshal_test
Change-Id: Ia9d840dd14d07bfbd362bcbc6fe42e58ec5d1d10
Diffstat (limited to 'cmds/lshal/TableEntry.cpp')
-rw-r--r-- | cmds/lshal/TableEntry.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmds/lshal/TableEntry.cpp b/cmds/lshal/TableEntry.cpp index e8792a4307..f390850e01 100644 --- a/cmds/lshal/TableEntry.cpp +++ b/cmds/lshal/TableEntry.cpp @@ -96,8 +96,11 @@ std::string TableEntry::getField(TableColumnType type) const { std::string TableEntry::isReleased() const { static const std::string unreleased = Hash::hexString(Hash::kEmptyHash); - if (hash.empty() || hash == unreleased) { - return " "; // unknown or unreleased + if (hash.empty()) { + return "?"; + } + if (hash == unreleased) { + return "N"; // unknown or unreleased } return "Y"; // released } |