bootlog: rename bz_file to file (#25881)

old-commit-hash: f4a4ec8fa21dfef5ef0ebe2eafaadc1c2536d861
This commit is contained in:
Dean Lee
2022-09-24 04:28:25 +08:00
committed by GitHub
parent 58de00a5db
commit 219a0f97c7
+3 -5
View File
@@ -55,13 +55,11 @@ int main(int argc, char** argv) {
bool r = util::create_directories(LOG_ROOT + "/boot/", 0775);
assert(r);
RawFile bz_file(path.c_str());
RawFile file(path.c_str());
// Write initdata
bz_file.write(logger_build_init_data().asBytes());
file.write(logger_build_init_data().asBytes());
// Write bootlog
bz_file.write(build_boot_log().asBytes());
file.write(build_boot_log().asBytes());
return 0;
}