diff options
author | Toomas Soome <tsoome@me.com> | 2020-01-20 01:54:27 -0800 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2020-09-08 08:49:33 +0300 |
commit | 09e6639baaf32231365cb9895bf1e0ea006a2a60 (patch) | |
tree | 6ab6a5f33aa42e0efd069864b0d6700a15bd9579 /usr/src/lib/efcode/fcdriver/ioctl.c | |
parent | e4af2f17fac5babc25d094f1bf22dd06515f66c7 (diff) | |
download | illumos-gate-09e6639baaf32231365cb9895bf1e0ea006a2a60.tar.gz |
12885 efcode: smatch and build errors
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib/efcode/fcdriver/ioctl.c')
-rw-r--r-- | usr/src/lib/efcode/fcdriver/ioctl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/src/lib/efcode/fcdriver/ioctl.c b/usr/src/lib/efcode/fcdriver/ioctl.c index 218ceb88db..7a40d98979 100644 --- a/usr/src/lib/efcode/fcdriver/ioctl.c +++ b/usr/src/lib/efcode/fcdriver/ioctl.c @@ -24,8 +24,6 @@ * All rights reserved. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> @@ -85,7 +83,7 @@ fc_run_priv(common_data_t *cdp, char *service, int nin, int nout, ...) error_msg = "Error"; error = 1; } - if ((error & !no_err) || + if ((error && !no_err) || (get_interpreter_debug_level() & DEBUG_REG_ACCESS)) { if (error) log_message(MSG_ERROR, "%s: FC_RUN_PRIV: %s: ", |