Skip to content

Commit

Permalink
Fix format for transl client #59
Browse files Browse the repository at this point in the history
Why I did it
GNMI unit test failed at transl_data_client.go.

How I did it
Update transl_data_client.go.

How to verify it
Build sonic-gnmi and run unit test.
  • Loading branch information
ganglyu authored Nov 14, 2022
2 parents fd8b2ee + b2d75b0 commit 5c43eea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sonic_data_client/transl_data_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (c *TranslClient) StreamRun(q *queue.PriorityQueue, stop chan struct{}, w *
return
}
default:
log.V(1).Infof("Bad Subscription Mode for client %s ", c)
log.V(1).Infof("Bad Subscription Mode for client %v ", c)
enqueFatalMsgTranslib(c, fmt.Sprintf("Invalid Subscription Mode %d", sub.Mode))
return
}
Expand Down Expand Up @@ -401,7 +401,7 @@ func TranslSubscribe(gnmiPaths []*gnmipb.Path, stringPaths []string, pathMap map
sync_done = true
}
default:
log.V(1).Infof("Unknown data type %v for %s in queue", items[0], c)
log.V(1).Infof("Unknown data type %v for %v in queue", items[0], v)
}
}
}
Expand Down

0 comments on commit 5c43eea

Please sign in to comment.