]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
libkmod-index.c: Fix error message
authorHolger Obermaier <holger.obermaier@kit.edu>
Thu, 4 Sep 2014 12:38:16 +0000 (14:38 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 4 Sep 2014 19:29:47 +0000 (16:29 -0300)
libkmod/libkmod-index.c

index 0c49868d6f8b42bb57fe31486bf15a574290647e..13199a25ecafdd9f1b773efc68b3106374fff852 100644 (file)
@@ -825,7 +825,7 @@ struct index_mm *index_mm_open(struct kmod_ctx *ctx, const char *filename,
 
        if (hdr.version >> 16 != INDEX_VERSION_MAJOR) {
                ERR(ctx, "major version check fail: %u instead of %u\n",
-                                               hdr.version, INDEX_MAGIC);
+                                       hdr.version >> 16, INDEX_VERSION_MAJOR);
                goto fail;
        }