Fix operator<< Status calls.

The Status object needs to be converted to a string before printing.

Bug: 31098727
Test: `make dist`

Change-Id: Ic226a95a33edee296198d4bb1ee98a670dbb8b9b
diff --git a/brillo_camera/main.cpp b/brillo_camera/main.cpp
index 081eb4f..0116c25 100644
--- a/brillo_camera/main.cpp
+++ b/brillo_camera/main.cpp
@@ -164,12 +164,13 @@
       ICameraService::USE_CALLING_UID,
       &camera_device_user);
   CHECK(status.isOk()) << "Failed to connect to camera id="
-                       << camera_id << " error=" << status;
+                       << camera_id << " error=" << status.toString8();
 
   LOG(INFO) << "Obtaining camera info";
   CameraMetadata camera_metadata;
   status = camera_device_user->getCameraInfo(&camera_metadata);
-  CHECK(status.isOk()) << "Failed to get camera info, error=" << status;
+  CHECK(status.isOk()) << "Failed to get camera info, error="
+                       << status.toString8();
 
   LOG(INFO) << "Calculating smallest stream configuration";
   camera_metadata_entry streamConfigs =
@@ -213,16 +214,16 @@
   LOG(INFO) << "Configuring the camera";
   status = camera_device_user->beginConfigure();
   CHECK(status.isOk()) << "Failed calling ICameraDeviceUser::beginConfigure()"
-                       << " error = " << status;
+                       << " error = " << status.toString8();
   android::OutputConfiguration output_configuration(
       buffer_producer, CAMERA3_STREAM_ROTATION_0);
   int32_t stream_id;
   status = camera_device_user->createStream(output_configuration, &stream_id);
   CHECK(status.isOk()) << "Failed calling ICameraDeviceUser::createStream()"
-                       << " error = " << status;
+                       << " error = " << status.toString8();
   status = camera_device_user->endConfigure(false /* isConstrainedHighSpeed */);
   CHECK(status.isOk()) << "Failed calling ICameraDeviceUser::endConfigure()"
-                       << " error = " << status;
+                       << " error = " << status.toString8();
 
   LOG(INFO) << "Creating capture_request";
   // CaptureRequest doesn't define incStrong, can't be strong pointer.
@@ -238,7 +239,7 @@
   SubmitInfo submit_info;
   status = camera_device_user->submitRequest(
       *capture_request, false, &submit_info);
-  CHECK(status.isOk()) << "Got error=" << status
+  CHECK(status.isOk()) << "Got error=" << status.toString8()
                        << " while submitting capture request.";
 
   LOG(INFO) << "Waiting for the camera to take a picture.";