diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-21 01:37:12 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-21 01:37:12 +0100 |
| commit | c464e5800961c809c73d4180f8a66885b53c63d7 (patch) | |
| tree | 3db42241d514cf0e85b3ae6a3a1b17fa7ccf0f3b /tools | |
| parent | f8b1d8bc7e7738a4c3e55b5492106f06ab4cb971 (diff) | |
meta: Codebase improvements on NeKernel.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/chk.hefs.cc | 9 | ||||
| -rw-r--r-- | tools/libmkfs/mkfs.h | 4 | ||||
| -rw-r--r-- | tools/libmkfs/openhefs.h | 4 | ||||
| -rw-r--r-- | tools/mkfs.hefs.cc | 12 |
4 files changed, 15 insertions, 14 deletions
diff --git a/tools/chk.hefs.cc b/tools/chk.hefs.cc index 931fdc02..cb6bd0d6 100644 --- a/tools/chk.hefs.cc +++ b/tools/chk.hefs.cc @@ -1,11 +1,11 @@ -/* ------------------------------------------- +/* ======================================== Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license. -------------------------------------------- */ +======================================== */ -#include <tools/libmkfs/openhefs.h> #include <tools/libmkfs/mkfs.h> +#include <tools/libmkfs/openhefs.h> #include <cstdlib> #include <fstream> @@ -64,7 +64,8 @@ int main(int argc, char** argv) { } if (boot_node.badSectors > kMkFsMaxBadSectors) { - mkfs::console_out() << "hefs: error: OpenHeFS disk has too much bad sectors: " << opt_disk << "\n"; + mkfs::console_out() << "hefs: error: OpenHeFS disk has too much bad sectors: " << opt_disk + << "\n"; return EXIT_FAILURE; } diff --git a/tools/libmkfs/mkfs.h b/tools/libmkfs/mkfs.h index 3124d1f8..e3ce19b5 100644 --- a/tools/libmkfs/mkfs.h +++ b/tools/libmkfs/mkfs.h @@ -1,8 +1,8 @@ -/* ------------------------------------------- +/* ======================================== Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license. -------------------------------------------- */ +======================================== */ #pragma once diff --git a/tools/libmkfs/openhefs.h b/tools/libmkfs/openhefs.h index 7ebd92e6..d90fda32 100644 --- a/tools/libmkfs/openhefs.h +++ b/tools/libmkfs/openhefs.h @@ -1,8 +1,8 @@ -/* ------------------------------------------- +/* ======================================== Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under the Apache 2.0 license. -------------------------------------------- */ +======================================== */ #pragma once diff --git a/tools/mkfs.hefs.cc b/tools/mkfs.hefs.cc index 692e58f0..1324735d 100644 --- a/tools/mkfs.hefs.cc +++ b/tools/mkfs.hefs.cc @@ -1,23 +1,23 @@ -/* ------------------------------------------- +/* ======================================== Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license. -------------------------------------------- */ +======================================== */ -#include <tools/libmkfs/openhefs.h> #include <tools/libmkfs/mkfs.h> +#include <tools/libmkfs/openhefs.h> #include <algorithm> #include <cstdlib> #include <cstring> #include <fstream> #include <limits> -static uint16_t kVersion = kHeFSVersion; -static uint16_t kNumericalBase = 10; +static uint16_t kVersion = kHeFSVersion; +static uint16_t kNumericalBase = 10; static size_t kDiskSize = mkfs::detail::gib_cast(4UL); static std::u8string kDiskLabel; -static size_t kDiskSectorSz = 512; +static size_t kDiskSectorSz = 512; int main(int argc, char** argv) { if (argc < 2) { |
