2121#include <linux/inet.h>
2222#include <linux/spinlock.h>
2323#include <linux/delay.h>
24-
24+ #include <linux/string_choices.h>
2525
2626#include "../cluster/heartbeat.h"
2727#include "../cluster/nodemanager.h"
@@ -2859,7 +2859,7 @@ static int dlm_mark_lockres_migrating(struct dlm_ctxt *dlm,
28592859 dlm_lockres_release_ast (dlm , res );
28602860
28612861 mlog (0 , "about to wait on migration_wq, dirty=%s\n" ,
2862- res -> state & DLM_LOCK_RES_DIRTY ? "yes" : "no" );
2862+ str_yes_no ( res -> state & DLM_LOCK_RES_DIRTY ) );
28632863 /* if the extra ref we just put was the final one, this
28642864 * will pass thru immediately. otherwise, we need to wait
28652865 * for the last ast to finish. */
@@ -2869,12 +2869,12 @@ static int dlm_mark_lockres_migrating(struct dlm_ctxt *dlm,
28692869 msecs_to_jiffies (1000 ));
28702870 if (ret < 0 ) {
28712871 mlog (0 , "woken again: migrating? %s, dead? %s\n" ,
2872- res -> state & DLM_LOCK_RES_MIGRATING ? "yes" : "no" ,
2873- test_bit (target , dlm -> domain_map ) ? "no" : "yes" );
2872+ str_yes_no ( res -> state & DLM_LOCK_RES_MIGRATING ) ,
2873+ str_no_yes ( test_bit (target , dlm -> domain_map )) );
28742874 } else {
28752875 mlog (0 , "all is well: migrating? %s, dead? %s\n" ,
2876- res -> state & DLM_LOCK_RES_MIGRATING ? "yes" : "no" ,
2877- test_bit (target , dlm -> domain_map ) ? "no" : "yes" );
2876+ str_yes_no ( res -> state & DLM_LOCK_RES_MIGRATING ) ,
2877+ str_no_yes ( test_bit (target , dlm -> domain_map )) );
28782878 }
28792879 if (!dlm_migration_can_proceed (dlm , res , target )) {
28802880 mlog (0 , "trying again...\n" );
0 commit comments