diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-20 19:40:30 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-20 19:40:30 -0500 |
| commit | c739255b48b3a5b2e184ca1a637f9f1f95c978ff (patch) | |
| tree | 3db42241d514cf0e85b3ae6a3a1b17fa7ccf0f3b /tools | |
| parent | 72dc7188a81052bfeb649eecb420e6b52e2c0c4b (diff) | |
| parent | c464e5800961c809c73d4180f8a66885b53c63d7 (diff) | |
Merge pull request #78 from nekernel-org/devv0.0.6
meta: Codebase improvements on NeKernel.
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) { |
