Skip to content

Commit b196db2

Browse files
Mukesh Kumar Chaurasiyampe
authored andcommitted
powerpc/xmon: symbol lookup length fixed
Currently this cannot lookup symbol beyond 64 characters in some cases like "ls", "lp" and "t" Fix this by using KSYM_NAME_LEN instead of fixed 64 characters Signed-off-by: Mukesh Kumar Chaurasiya <mchauras@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://patch.msgid.link/20241024191232.1570894-2-mchauras@linux.ibm.com
1 parent bfd9c14 commit b196db2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

arch/powerpc/xmon/xmon.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3662,7 +3662,7 @@ symbol_lookup(void)
36623662
int type = inchar();
36633663
unsigned long addr, cpu;
36643664
void __percpu *ptr = NULL;
3665-
static char tmp[64];
3665+
static char tmp[KSYM_NAME_LEN];
36663666

36673667
switch (type) {
36683668
case 'a':
@@ -3671,7 +3671,7 @@ symbol_lookup(void)
36713671
termch = 0;
36723672
break;
36733673
case 's':
3674-
getstring(tmp, 64);
3674+
getstring(tmp, KSYM_NAME_LEN);
36753675
if (setjmp(bus_error_jmp) == 0) {
36763676
catch_memory_errors = 1;
36773677
sync();
@@ -3686,7 +3686,7 @@ symbol_lookup(void)
36863686
termch = 0;
36873687
break;
36883688
case 'p':
3689-
getstring(tmp, 64);
3689+
getstring(tmp, KSYM_NAME_LEN);
36903690
if (setjmp(bus_error_jmp) == 0) {
36913691
catch_memory_errors = 1;
36923692
sync();

0 commit comments

Comments
 (0)