summaryrefslogtreecommitdiffstats
path: root/discover/discover-server.c
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-02-27 14:54:06 +0000
committerJeremy Kerr <jk@ozlabs.org>2009-03-23 21:49:44 +1100
commita7908ed63584ff12653b37fb2c2548c52c8ed9da (patch)
treef4a8425369a16923abe3a01d4fd14059e7c11c7e /discover/discover-server.c
parent642466026a078f7c2bf413e94aa720776300b604 (diff)
downloadtalos-petitboot-a7908ed63584ff12653b37fb2c2548c52c8ed9da.tar.gz
talos-petitboot-a7908ed63584ff12653b37fb2c2548c52c8ed9da.zip
Log server messages to file
Log discover server messages to a file. Helps in debugging the server when is has problems at system startup. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Diffstat (limited to 'discover/discover-server.c')
-rw-r--r--discover/discover-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/discover/discover-server.c b/discover/discover-server.c
index e03a44a..47ab494 100644
--- a/discover/discover-server.c
+++ b/discover/discover-server.c
@@ -66,12 +66,12 @@ static void print_clients(struct discover_server *server)
{
struct client *client;
- printf("current clients [%p,%p,%p]:\n",
+ pb_log("current clients [%p,%p,%p]:\n",
&server->clients.head,
server->clients.head.prev,
server->clients.head.next);
list_for_each_entry(&server->clients, client, list)
- printf("\t[%p,%p,%p] client: %d\n", &client->list,
+ pb_log("\t[%p,%p,%p] client: %d\n", &client->list,
client->list.prev, client->list.next,
client->fd);
}
OpenPOWER on IntegriCloud