diff --git a/tools/misc/xen-livepatch.c b/tools/misc/xen-livepatch.c index c16fb6862d..f406ea1373 100644 --- a/tools/misc/xen-livepatch.c +++ b/tools/misc/xen-livepatch.c @@ -576,7 +576,7 @@ int main(int argc, char *argv[]) return 0; } - if ( strcmp("--force", argv[1]) ) + if ( !strcmp("--force", argv[1]) ) { if ( argc <= 2 ) {