Whamcloud - gitweb
LU-5848 lnet: fix inconsistent seq_no names 62/12562/2
authorAmir Shehata <amir.shehata@intel.com>
Tue, 4 Nov 2014 21:29:06 +0000 (13:29 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 11 Nov 2014 12:08:21 +0000 (12:08 +0000)
When YAML output is printed the literal "seqno" is used,
when it's parsed, the literal "seq_no" is expected.
This patch makes it consistent.

Signed-off-by: Amir Shehata <amir.shehata@intel.com>
Change-Id: Iabf5394e858007c7f6e87c7baf892887da88f8e3
Reviewed-on: http://review.whamcloud.com/12562
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lnet/utils/cyaml/cyaml.c

index dccce6c..7413280 100644 (file)
@@ -1072,7 +1072,7 @@ void cYAML_build_error(int rc, int seq_no, char *cmd,
                goto failed;
 
        if (seq_no >= 0 &&
                goto failed;
 
        if (seq_no >= 0 &&
-           cYAML_create_number(err, "seqno", seq_no) == NULL)
+           cYAML_create_number(err, "seq_no", seq_no) == NULL)
                goto failed;
 
        if (cYAML_create_number(err, "errno", rc) == NULL)
                goto failed;
 
        if (cYAML_create_number(err, "errno", rc) == NULL)