locking/atomic: Correct (cmp)xchg() instrumentation
[linux-block.git] / scripts / asn1_compiler.c
index 71d4a7c87900890a04b3451450cbaab4be5f2ee7..7b6756a8c15d99440078dbfbb2b323abf376ed45 100644 (file)
@@ -567,8 +567,8 @@ int main(int argc, char **argv)
        int fd;
 
        kbuild_verbose = getenv("KBUILD_VERBOSE");
-       if (kbuild_verbose)
-               verbose_opt = atoi(kbuild_verbose);
+       if (kbuild_verbose && strchr(kbuild_verbose, '1'))
+               verbose_opt = true;
 
        while (argc > 4) {
                if (strcmp(argv[1], "-v") == 0)