Whamcloud - gitweb
chattr: fix verbose message while setting the project id
authorTheodore Ts'o <tytso@mit.edu>
Fri, 18 Mar 2016 20:49:51 +0000 (16:49 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 18 Mar 2016 20:49:51 +0000 (16:49 -0400)
This was caused by a cut and paste error.  (Thanks to Coverity for
pointing this out).

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/chattr.c

index 982a593..a5b401a 100644 (file)
@@ -268,7 +268,7 @@ static int change_attributes(const char * name)
        }
        if (set_project) {
                if (verbose)
-                       printf (_("Project of %s set as %lu\n"), name, version);
+                       printf (_("Project of %s set as %lu\n"), name, project);
                if (fsetproject (name, project) == -1) {
                        if (!silent)
                                com_err (program_name, errno,