svn commit: r229151 - stable/9/sbin/camcontrol
Dimitry Andric
dim at FreeBSD.org
Sat Dec 31 20:01:41 UTC 2011
Author: dim
Date: Sat Dec 31 20:01:40 2011
New Revision: 229151
URL: http://svn.freebsd.org/changeset/base/229151
Log:
MFC r228602:
In sbin/camcontrol/camcontrol.c, fix a few warnings about format strings
not being literals.
Modified:
stable/9/sbin/camcontrol/camcontrol.c
Directory Properties:
stable/9/sbin/camcontrol/ (props changed)
Modified: stable/9/sbin/camcontrol/camcontrol.c
==============================================================================
--- stable/9/sbin/camcontrol/camcontrol.c Sat Dec 31 20:01:09 2011 (r229150)
+++ stable/9/sbin/camcontrol/camcontrol.c Sat Dec 31 20:01:40 2011 (r229151)
@@ -2506,7 +2506,7 @@ scsicmd(struct cam_device *device, int a
if (((retval = cam_send_ccb(device, ccb)) < 0)
|| ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)) {
- const char *warnstr = "error sending command";
+ const char warnstr[] = "error sending command";
if (retval < 0)
warn(warnstr);
@@ -4469,7 +4469,7 @@ smpcmd(struct cam_device *device, int ar
if (((retval = cam_send_ccb(device, ccb)) < 0)
|| ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)) {
- const char *warnstr = "error sending command";
+ const char warnstr[] = "error sending command";
if (retval < 0)
warn(warnstr);
@@ -4587,7 +4587,7 @@ try_long:
if (((retval = cam_send_ccb(device, ccb)) < 0)
|| ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)) {
- const char *warnstr = "error sending command";
+ const char warnstr[] = "error sending command";
if (retval < 0)
warn(warnstr);
@@ -4892,7 +4892,7 @@ smpphycontrol(struct cam_device *device,
if (((retval = cam_send_ccb(device, ccb)) < 0)
|| ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)) {
- const char *warnstr = "error sending command";
+ const char warnstr[] = "error sending command";
if (retval < 0)
warn(warnstr);
@@ -4974,7 +4974,7 @@ smpmaninfo(struct cam_device *device, in
if (((retval = cam_send_ccb(device, ccb)) < 0)
|| ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)) {
- const char *warnstr = "error sending command";
+ const char warnstr[] = "error sending command";
if (retval < 0)
warn(warnstr);
@@ -5371,7 +5371,7 @@ smpphylist(struct cam_device *device, in
if (((retval = cam_send_ccb(device, ccb)) < 0)
|| ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)) {
- const char *warnstr = "error sending command";
+ const char warnstr[] = "error sending command";
if (retval < 0)
warn(warnstr);
@@ -5451,7 +5451,7 @@ smpphylist(struct cam_device *device, in
if (((retval = cam_send_ccb(device, ccb)) < 0)
|| (((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)
&& (disresponse->function_result != SMP_FR_PHY_VACANT))) {
- const char *warnstr = "error sending command";
+ const char warnstr[] = "error sending command";
if (retval < 0)
warn(warnstr);
More information about the svn-src-stable-9
mailing list