Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:20
erlang
1064-break.c-Rephrase-Eh.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1064-break.c-Rephrase-Eh.patch of Package erlang
From da5e92b954e2a1caab9e3063779db596dea4e863 Mon Sep 17 00:00:00 2001 From: Henrik Nyh <henrik@nyh.se> Date: Sat, 20 Jun 2020 12:11:08 +0100 Subject: [PATCH] break.c: Rephrase "Eh?" --- erts/emulator/beam/break.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/erts/emulator/beam/break.c b/erts/emulator/beam/break.c index c8449a222b..045b1b86ff 100644 --- a/erts/emulator/beam/break.c +++ b/erts/emulator/beam/break.c @@ -507,6 +507,8 @@ dump_attributes(fmtfn_t to, void *to_arg, byte* ptr, int size) void do_break(void) { + const char *helpstring = "BREAK: (a)bort (A)bort with dump (c)ontinue (p)roc info (i)nfo\n" + " (l)oaded (v)ersion (k)ill (D)b-tables (d)istribution\n"; int i; #ifdef __WIN32__ char *mode; /* enough for storing "window" */ @@ -521,9 +523,7 @@ do_break(void) ASSERT(erts_smp_thr_progress_is_blocking()); - erts_printf("\n" - "BREAK: (a)bort (A)bort with dump (c)ontinue (p)roc info (i)nfo\n" - " (l)oaded (v)ersion (k)ill (D)b-tables (d)istribution\n"); + erts_printf("\n%s", helpstring); while (1) { if ((i = sys_get_key(0)) <= 0) @@ -608,7 +608,8 @@ do_break(void) case '\n': continue; default: - erts_printf("Eh?\n\n"); + erts_printf("Invalid option '%c'. Please enter one of the following:\n%s", + i, helpstring); } } -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor