Browse Source

use the correct format string for refid

ok deraadt@
OPENBSD_5_7
bcook 9 years ago
parent
commit
950986b2ca
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/usr.sbin/ntpd/sensors.c

+ 3
- 3
src/usr.sbin/ntpd/sensors.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: sensors.c,v 1.47 2013/10/04 14:28:16 phessler Exp $ */
/* $OpenBSD: sensors.c,v 1.48 2015/01/08 00:25:47 bcook Exp $ */
/* /*
* Copyright (c) 2006 Henning Brauer <henning@openbsd.org> * Copyright (c) 2006 Henning Brauer <henning@openbsd.org>
@ -148,9 +148,9 @@ sensor_add(int sensordev, char *dxname)
TAILQ_INSERT_TAIL(&conf->ntp_sensors, s, entry); TAILQ_INSERT_TAIL(&conf->ntp_sensors, s, entry);
log_debug("sensor %s added (weight %d, correction %.6f, refstr %.4s, "
log_debug("sensor %s added (weight %d, correction %.6f, refstr %.4u, "
"stratum %d)", s->device, s->weight, s->correction / 1e6, "stratum %d)", s->device, s->weight, s->correction / 1e6,
&s->refid, s->stratum);
s->refid, s->stratum);
} }
void void


Loading…
Cancel
Save