From 0233fd877d92e40030a4409f8cee16a311c95a27 Mon Sep 17 00:00:00 2001 From: TaurusXin Date: Tue, 13 Feb 2024 20:25:12 +0800 Subject: [PATCH] chore: use cout for printing --- ncmcrypt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ncmcrypt.cpp b/ncmcrypt.cpp index 0f629c0..0381c43 100644 --- a/ncmcrypt.cpp +++ b/ncmcrypt.cpp @@ -302,7 +302,7 @@ NeteaseCrypt::NeteaseCrypt(std::filesystem::path const& path) { read(reinterpret_cast(&n), sizeof(n)); if (n <= 0) { - printf("[Warn] `%s` missing metadata infomation can't fix some infomation!\n", path.c_str()); + std::cout << "[Warn] " << path.string() << " missing metadata infomation can't fix some infomation!" << std::endl; mMetaData = NULL; } else { @@ -345,6 +345,6 @@ NeteaseCrypt::NeteaseCrypt(std::filesystem::path const& path) { mImageData = std::string(imageData, n); } else { - printf("[Warn] `%s` missing album can't fix album image!\n", path.c_str()); + std::cout << "[Warn] " << path.string() << " missing album can't fix album image!" << std::endl; } }