We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c10cc2 commit 9131d6aCopy full SHA for 9131d6a
kernel/debug/kdb/kdb_main.c
@@ -402,23 +402,15 @@ static void kdb_printenv(void)
402
*/
403
int kdbgetularg(const char *arg, unsigned long *value)
404
{
405
- /*
406
- * If the first fails, also try base 16, for us
407
- * folks too lazy to type the leading 0x...
408
- */
409
- if (kstrtoul(arg, 0, value)) {
410
- if (kstrtoul(arg, 16, value))
411
- return KDB_BADINT;
412
- }
+ if (kstrtoul(arg, 0, value))
+ return KDB_BADINT;
413
return 0;
414
}
415
416
int kdbgetu64arg(const char *arg, u64 *value)
417
418
- if (kstrtou64(arg, 0, value)) {
419
- if (kstrtou64(arg, 16, value))
420
421
+ if (kstrtou64(arg, 0, value))
422
423
424
0 commit comments