Description:Anony deviceId

Match-id-ca8e8033607d56b3af0cb604329889f56ea6365d
This commit is contained in:
xxxx
2022-08-09 16:11:24 +08:00
parent 056e886951
commit d1bd2444b3
3 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -486,7 +486,7 @@ int32_t InputHub::OpenInputDeviceLocked(const std::string& devicePath)
DHLOGI(" name: \"%s\"\n", identifier.name.c_str());
DHLOGI(" location: \"%s\"\n", identifier.location.c_str());
DHLOGI(" unique id: \"%s\"\n", identifier.uniqueId.c_str());
DHLOGI(" descriptor: \"%s\"\n", identifier.descriptor.c_str());
DHLOGI(" descriptor: \"%s\"\n", GetAnonyString(identifier.descriptor).c_str());
if (MakeDevice(fd, std::move(device)) < 0) {
return ERR_DH_INPUT_HUB_MAKE_DEVICE_FAIL;
@@ -54,8 +54,8 @@ DistributedInputHandler::~DistributedInputHandler()
void DistributedInputHandler::StructTransJson(const InputDevice& pBuf, std::string& strDescriptor)
{
DHLOGI("[%s] %d, %d, %d, %d, %s.\n",
(pBuf.name).c_str(), pBuf.bus, pBuf.vendor, pBuf.product, pBuf.version, (pBuf.descriptor).c_str());
DHLOGI("[%s] %d, %d, %d, %d, %s.\n", (pBuf.name).c_str(), pBuf.bus, pBuf.vendor, pBuf.product, pBuf.version,
GetAnonyString(pBuf.descriptor).c_str());
nlohmann::json tmpJson;
tmpJson["name"] = pBuf.name;
tmpJson["location"] = pBuf.location;
@@ -77,9 +77,8 @@ int32_t DistributedInputInject::UnregisterDistributedHardware(const std::string&
int32_t DistributedInputInject::StructTransJson(const InputDevice& pBuf, std::string& strDescriptor)
{
DHLOGI(
"[%s] %d, %d, %d, %d, %s.\n",
(pBuf.name).c_str(), pBuf.bus, pBuf.vendor, pBuf.product, pBuf.version, (pBuf.descriptor).c_str());
DHLOGI("[%s] %d, %d, %d, %d, %s.\n", (pBuf.name).c_str(), pBuf.bus, pBuf.vendor, pBuf.product, pBuf.version,
GetAnonyString(pBuf.descriptor).c_str());
nlohmann::json tmpJson;
tmpJson["name"] = pBuf.name;
tmpJson["location"] = pBuf.location;