blob: b4f6d2cec36768e9cbf60132294f3eb90a1cce92 [file] [log] [blame]
// Copyright 2021 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "fusebox/util.h"
#include <base/strings/stringprintf.h>
std::string ErrorToString(int error, const std::string& prefix) {
if (!prefix.empty())
return base::StringPrintf("%s [%d]", prefix.c_str(), error);
return base::StringPrintf("[%d]", error);
}