Cleanup: Various whitespace cleanup.

Change-Id: I9b3d910d14f845f750d01d7f028da4b461e9fcd6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8338
Reviewed-by: Axel Dörfler <[email protected]>
This commit is contained in:
Michael Lotz
2024-09-17 09:33:47 +00:00
committed by Axel Dörfler
parent b21df8feab
commit fece81468c
2 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -138,8 +138,8 @@ typedef void (*daemon_hook)(void *arg, int iteration);
/* kernel debugging facilities */ /* kernel debugging facilities */
/* special return codes for kernel debugger */ /* special return codes for kernel debugger */
#define B_KDEBUG_CONT 2 #define B_KDEBUG_CONT 2
#define B_KDEBUG_QUIT 3 #define B_KDEBUG_QUIT 3
typedef int (*debugger_command_hook)(int argc, char **argv); typedef int (*debugger_command_hook)(int argc, char **argv);
@@ -207,7 +207,7 @@ extern void dprintf(const char *format, ...) _PRINTFLIKE(1, 2);
extern void dvprintf(const char *format, va_list args); extern void dvprintf(const char *format, va_list args);
extern void kprintf(const char *fmt, ...) _PRINTFLIKE(1, 2); extern void kprintf(const char *fmt, ...) _PRINTFLIKE(1, 2);
extern void dump_block(const char *buffer, int size, const char *prefix); extern void dump_block(const char *buffer, int size, const char *prefix);
/* TODO: temporary API: hexdumps given buffer */ /* TODO: temporary API: hexdumps given buffer */
extern bool set_dprintf_enabled(bool new_state); extern bool set_dprintf_enabled(bool new_state);
+5 -5
View File
@@ -553,7 +553,7 @@ public:
&& menu->Superitem() != NULL) { && menu->Superitem() != NULL) {
return static_cast<BlocklistMenuItem*>(menu->Superitem()) return static_cast<BlocklistMenuItem*>(menu->Superitem())
->GetPath(_path) ->GetPath(_path)
&& _path.Append(Label()); && _path.Append(Label());
} }
return _path.SetTo(Label()); return _path.SetTo(Label());
@@ -1301,13 +1301,13 @@ add_safe_mode_menu()
safeMenu->AddItem(item = new(nothrow) MenuItem("Disable user add-ons")); safeMenu->AddItem(item = new(nothrow) MenuItem("Disable user add-ons"));
item->SetData(B_SAFEMODE_DISABLE_USER_ADD_ONS); item->SetData(B_SAFEMODE_DISABLE_USER_ADD_ONS);
item->SetType(MENU_ITEM_MARKABLE); item->SetType(MENU_ITEM_MARKABLE);
item->SetHelpText("Prevents all user installed add-ons from being loaded. " item->SetHelpText("Prevents all user installed add-ons from being loaded. "
"Only the add-ons in the system directory will be used."); "Only the add-ons in the system directory will be used.");
safeMenu->AddItem(item = new(nothrow) MenuItem("Disable IDE DMA")); safeMenu->AddItem(item = new(nothrow) MenuItem("Disable IDE DMA"));
item->SetData(B_SAFEMODE_DISABLE_IDE_DMA); item->SetData(B_SAFEMODE_DISABLE_IDE_DMA);
item->SetType(MENU_ITEM_MARKABLE); item->SetType(MENU_ITEM_MARKABLE);
item->SetHelpText("Disables IDE DMA, increasing IDE compatibility " item->SetHelpText("Disables IDE DMA, increasing IDE compatibility "
"at the expense of performance."); "at the expense of performance.");
#if B_HAIKU_PHYSICAL_BITS > 32 #if B_HAIKU_PHYSICAL_BITS > 32
@@ -1453,8 +1453,8 @@ add_debug_menu()
item->SetType(MENU_ITEM_MARKABLE); item->SetType(MENU_ITEM_MARKABLE);
item->SetMarked(gKernelArgs.keep_debug_output_buffer); item->SetMarked(gKernelArgs.keep_debug_output_buffer);
item->SetTarget(&debug_menu_toggle_debug_syslog); item->SetTarget(&debug_menu_toggle_debug_syslog);
item->SetHelpText("Enables a special in-memory syslog buffer for this " item->SetHelpText("Enables a special in-memory syslog buffer for this "
"session that the boot loader will be able to access after rebooting."); "session that the boot loader will be able to access after rebooting.");
ring_buffer* syslogBuffer ring_buffer* syslogBuffer
= (ring_buffer*)gKernelArgs.debug_output.Pointer(); = (ring_buffer*)gKernelArgs.debug_output.Pointer();