From: Brandon Potter Date: Wed, 22 Apr 2015 14:51:27 +0000 (-0700) Subject: syscall_emul: update getrlimit to use warn X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=344a437064a94b753119994f9c2ba20b90a25c6a;p=gem5.git syscall_emul: update getrlimit to use warn Don't use std::cerr directly, and just return EINVAL instead of aborting. --- diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh index 3b584260f..bb73e1fd2 100644 --- a/src/sim/syscall_emul.hh +++ b/src/sim/syscall_emul.hh @@ -1274,9 +1274,8 @@ getrlimitFunc(SyscallDesc *desc, int callnum, LiveProcess *process, break; default: - std::cerr << "getrlimitFunc: unimplemented resource " << resource - << std::endl; - abort(); + warn("getrlimit: unimplemented resource %d", resource); + return -EINVAL; break; }