[sheepdog] [PATCH 1/3] sheep: print symbolic command names

Christoph Hellwig hch at infradead.org
Sat Jul 14 09:39:07 CEST 2012


On Fri, Jul 13, 2012 at 08:00:48PM +0800, Liu Yuan wrote:
> On 07/13/2012 05:52 PM, Christoph Hellwig wrote:
> > ===================================================================
> > --- sheepdog.orig/sheep/sdnet.c	2012-07-13 09:24:16.423304255 +0200
> > +++ sheepdog/sheep/sdnet.c	2012-07-13 11:31:54.473258506 +0200
> > @@ -110,16 +110,16 @@ static void local_op_done(struct work *w
> >  static int check_request_epoch(struct request *req)
> >  {
> >  	if (before(req->rq.epoch, sys->epoch)) {
> > -		eprintf("old node version %u, %u, %x\n",
> > -			sys->epoch, req->rq.epoch, req->rq.opcode);
> > +		eprintf("old node version %u, %u (%s)\n",
> > +			sys->epoch, req->rq.epoch, op_name(req->op));
> 
> I think better eprintf -> dprintf, not everyone find it useful.

Can we keep it for?  A lot of these have been useful for debugging,
so even if you insist on changing it I'd like that to be an easily
revertable separate commit.




More information about the sheepdog mailing list