[logging] Use PLOG variant in some ledger code

This logs the string version of the zx_status_t in addition to the
decimal version for easier debugging.

ZX-4110 #comment [logging] Use PLOG variant in some ledger code

Change-Id: Ifdd903b3b1c35676eaf5eb79cc8c468a3b52b9c3
diff --git a/src/ledger/bin/storage/impl/object_impl.cc b/src/ledger/bin/storage/impl/object_impl.cc
index 547904e..fb337ae 100644
--- a/src/ledger/bin/storage/impl/object_impl.cc
+++ b/src/ledger/bin/storage/impl/object_impl.cc
@@ -140,7 +140,7 @@
   zx_status_t zx_status =
       vmo_.Duplicate(ZX_RIGHTS_BASIC | ZX_RIGHT_READ | ZX_RIGHT_MAP, vmo);
   if (zx_status != ZX_OK) {
-    FXL_LOG(ERROR) << "Unable to duplicate a vmo. Status: " << zx_status;
+    FXL_PLOG(ERROR, zx_status) << "Unable to duplicate a vmo";
     return Status::INTERNAL_ERROR;
   }
   return Status::OK;
@@ -157,7 +157,7 @@
       ZX_VM_CAN_MAP_READ | ZX_VM_CAN_MAP_WRITE | ZX_VM_CAN_MAP_SPECIFIC, &vmar_,
       &allocate_address);
   if (zx_status != ZX_OK) {
-    FXL_LOG(ERROR) << "Unable to allocate VMAR. Error: " << zx_status;
+    FXL_PLOG(ERROR, zx_status) << "Unable to allocate VMAR";
     return Status::INTERNAL_ERROR;
   }
 
@@ -166,7 +166,7 @@
                         ZX_VM_PERM_READ | ZX_VM_PERM_WRITE | ZX_VM_SPECIFIC,
                         reinterpret_cast<uintptr_t*>(&mapped_address));
   if (zx_status != ZX_OK) {
-    FXL_LOG(ERROR) << "Unable to map VMO. Error: " << zx_status;
+    FXL_PLOG(ERROR, zx_status) << "Unable to map VMO";
     vmar_.reset();
     return Status::INTERNAL_ERROR;
   }
diff --git a/src/ledger/bin/storage/impl/page_storage_impl.cc b/src/ledger/bin/storage/impl/page_storage_impl.cc
index 1f22c2f..24405f3 100644
--- a/src/ledger/bin/storage/impl/page_storage_impl.cc
+++ b/src/ledger/bin/storage/impl/page_storage_impl.cc
@@ -810,7 +810,7 @@
   zx::vmo raw_vmo;
   zx_status_t zx_status = zx::vmo::create(length, 0, &raw_vmo);
   if (zx_status != ZX_OK) {
-    FXL_LOG(WARNING) << "Unable to create VMO of size: " << length;
+    FXL_PLOG(WARNING, zx_status) << "Unable to create VMO of size: " << length;
     callback(Status::INTERNAL_ERROR, nullptr);
     return;
   }
@@ -819,7 +819,7 @@
   fsl::SizedVmo vmo_copy;
   zx_status = vmo.Duplicate(ZX_RIGHTS_BASIC | ZX_RIGHT_WRITE, &vmo_copy);
   if (zx_status != ZX_OK) {
-    FXL_LOG(ERROR) << "Unable to duplicate vmo. Status: " << zx_status;
+    FXL_PLOG(ERROR, zx_status) << "Unable to duplicate vmo";
     callback(Status::INTERNAL_ERROR, nullptr);
     return;
   }
@@ -915,7 +915,7 @@
     zx_status_t zx_status =
         vmo.vmo().write(read_substr.data(), write_offset, read_write_size);
     if (zx_status != ZX_OK) {
-      FXL_LOG(ERROR) << "Unable to write to vmo. Status: " << zx_status;
+      FXL_PLOG(ERROR, zx_status) << "Unable to write to vmo";
       callback(Status::INTERNAL_ERROR);
       return;
     }
@@ -959,7 +959,7 @@
     zx_status_t zx_status =
         vmo.Duplicate(ZX_RIGHTS_BASIC | ZX_RIGHT_WRITE, &vmo_copy);
     if (zx_status != ZX_OK) {
-      FXL_LOG(ERROR) << "Unable to duplicate vmo. Status: " << zx_status;
+      FXL_PLOG(ERROR, zx_status) << "Unable to duplicate vmo";
       callback(Status::INTERNAL_ERROR);
       return;
     }