Skip to content

Commit

Permalink
wlan: Replace instances of unadorned %p
Browse files Browse the repository at this point in the history
Replace instances of unadorned %p.

CRs-Fixed: 2111275
  • Loading branch information
Jeff Johnson authored and sultanqasim committed Jan 1, 2018
1 parent a3e8c2e commit 3bf35cf
Show file tree
Hide file tree
Showing 58 changed files with 456 additions and 456 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/prima/CORE/BAP/src/bapApiData.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2015 The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2015, 2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
Expand Down Expand Up @@ -1013,7 +1013,7 @@ WLANBAP_TxCompCB
#ifdef BAP_DEBUG
/* Trace the bapContext referenced. */
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH,
"WLAN BAP Context Monitor: bapContext value = %p in %s:%d. vosDataBuff=%p", bapContext, __func__, __LINE__, vosDataBuff );
"WLAN BAP Context Monitor: bapContext value = %pK in %s:%d. vosDataBuff=%pK", bapContext, __func__, __LINE__, vosDataBuff );
#endif //BAP_DEBUG

// Sanity check the log_link_handle value
Expand Down Expand Up @@ -1164,7 +1164,7 @@ WLANBAP_STAPktPending
#ifdef BAP_DEBUG
/* Trace the tBtampCtx being passed in. */
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH,
"WLAN BAP Context Monitor: pBtampCtx value = %p in %s:%d", pBtampCtx, __func__, __LINE__ );
"WLAN BAP Context Monitor: pBtampCtx value = %pK in %s:%d", pBtampCtx, __func__, __LINE__ );
#endif //BAP_DEBUG

/*------------------------------------------------------------------------
Expand Down
34 changes: 17 additions & 17 deletions drivers/staging/prima/CORE/BAP/src/bapApiHCBB.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2013 The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2013, 2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
Expand Down Expand Up @@ -144,7 +144,7 @@ WLAN_BAPReset
tHalHandle hHal = NULL;
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %p", __func__, btampHandle);
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate params */
if (btampHandle == NULL)
Expand Down Expand Up @@ -291,7 +291,7 @@ WLAN_BAPFlush
ptBtampContext btampContext = (ptBtampContext) btampHandle;
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %p", __func__, btampHandle);
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate params */
if (btampHandle == NULL) {
Expand Down Expand Up @@ -364,7 +364,7 @@ WLAN_EnhancedBAPFlush
ptBtampContext btampContext;
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %p", __func__, btampHandle);
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate params */
/* Validate params */
Expand Down Expand Up @@ -444,7 +444,7 @@ WLAN_BAPReadConnectionAcceptTimeout
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH,
"%s: btampHandle value: %p", __func__, btampHandle);
"%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate params */
if ((NULL == btampHandle) || (NULL == pBapHCIEvent))
Expand Down Expand Up @@ -513,7 +513,7 @@ WLAN_BAPWriteConnectionAcceptTimeout
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH,
"%s: btampHandle value: %p", __func__, btampHandle);
"%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate params */
if ((NULL == btampHandle) || (NULL == pBapHCIWriteConnectionAcceptTimeout)
Expand Down Expand Up @@ -604,7 +604,7 @@ WLAN_BAPReadLinkSupervisionTimeout
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH,
"%s: btampHandle value: %p", __func__, btampHandle);
"%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate params */
if ((NULL == btampHandle) || (NULL == pBapHCIReadLinkSupervisionTimeout) ||
Expand Down Expand Up @@ -696,7 +696,7 @@ WLAN_BAPWriteLinkSupervisionTimeout
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH,
"%s: btampHandle value: %p", __func__, btampHandle);
"%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate params */
if ((NULL == btampHandle) || (NULL == pBapHCIWriteLinkSupervisionTimeout) ||
Expand Down Expand Up @@ -788,7 +788,7 @@ WLAN_BAPReadLogicalLinkAcceptTimeout
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH,
"%s: btampHandle value: %p", __func__, btampHandle);
"%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate params */
if ((NULL == btampHandle) || (NULL == pBapHCIEvent))
Expand Down Expand Up @@ -857,7 +857,7 @@ WLAN_BAPWriteLogicalLinkAcceptTimeout
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH,
"%s: btampHandle value: %p", __func__, btampHandle);
"%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate params */
if ((NULL == btampHandle) || (NULL == pBapHCIWriteLogicalLinkAcceptTimeout)
Expand Down Expand Up @@ -945,7 +945,7 @@ WLAN_BAPSetEventMaskPage2
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH,
"%s: btampHandle value: %p", __func__, btampHandle);
"%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate params */
if ((NULL == btampHandle) || (NULL == pBapHCISetEventMaskPage2)
Expand Down Expand Up @@ -1020,7 +1020,7 @@ WLAN_BAPReadLocationData
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH,
"%s: btampHandle value: %p", __func__, btampHandle);
"%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate params */
if ((NULL == btampHandle) || (NULL == pBapHCIEvent))
Expand Down Expand Up @@ -1102,7 +1102,7 @@ WLAN_BAPWriteLocationData
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH,
"%s: btampHandle value: %p", __func__, btampHandle);
"%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate params */
if ((NULL == btampHandle) || (NULL == pBapHCIWriteLocationData)
Expand Down Expand Up @@ -1183,7 +1183,7 @@ WLAN_BAPReadFlowControlMode
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH,
"%s: btampHandle value: %p", __func__, btampHandle);
"%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate params */
if ((NULL == btampHandle) || (NULL == pBapHCIEvent))
Expand Down Expand Up @@ -1388,7 +1388,7 @@ WLAN_BAPSetShortRangeMode
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH,
"%s: btampHandle value: %p", __func__, btampHandle);
"%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate params */
if ((NULL == btampHandle) || (NULL == pBapHCIEvent))
Expand Down Expand Up @@ -1529,7 +1529,7 @@ WLAN_BAPVendorSpecificCmd0
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH,
"%s: btampHandle value: %p", __func__, btampHandle);
"%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate params */
if ((NULL == btampHandle) || (NULL == pBapHCIEvent))
Expand Down Expand Up @@ -1629,7 +1629,7 @@ WLAN_BAPVendorSpecificCmd1
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH,
"%s: btampHandle value: %p", __func__, btampHandle);
"%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate params */
if ((NULL == btampHandle) || (NULL == pBapHCIEvent))
Expand Down
14 changes: 7 additions & 7 deletions drivers/staging/prima/CORE/BAP/src/bapApiInfo.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2013 The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2013, 2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
Expand Down Expand Up @@ -153,7 +153,7 @@ WLAN_BAPReadLocalVersionInfo
}


VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %p", __func__, btampHandle);
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %pK", __func__, btampHandle);


/* Format the command complete event to return... */
Expand Down Expand Up @@ -229,7 +229,7 @@ WLAN_BAPReadLocalSupportedCmds
}


VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %p", __func__, btampHandle);
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %pK", __func__, btampHandle);


/* Format the command complete event to return... */
Expand Down Expand Up @@ -295,7 +295,7 @@ WLAN_BAPReadBufferSize
}


VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %p", __func__, btampHandle);
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %pK", __func__, btampHandle);


/* Format the command complete event to return... */
Expand Down Expand Up @@ -365,7 +365,7 @@ WLAN_BAPReadDataBlockSize
}


VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %p", __func__, btampHandle);
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %pK", __func__, btampHandle);


/* Format the command complete event to return... */
Expand Down Expand Up @@ -526,7 +526,7 @@ WLAN_BAPDisconnect
VOS_STATUS vosStatus;
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_FATAL, "%s: btampHandle value: %p", __func__, btampHandle);
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_FATAL, "%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate params */
if (btampHandle == NULL)
Expand Down Expand Up @@ -592,7 +592,7 @@ v_BOOL_t WLAN_BAPSessionOn
ptBtampContext btampContext = (ptBtampContext) btampHandle;
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %p", __func__, btampHandle);
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate params */
if (btampHandle == NULL)
Expand Down
24 changes: 12 additions & 12 deletions drivers/staging/prima/CORE/BAP/src/bapApiLinkCntl.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2013 The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2013, 2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
Expand Down Expand Up @@ -865,12 +865,12 @@ WLAN_BAPPhysicalLinkCreate
/* Validate params */
if ((pBapHCIPhysLinkCreate == NULL) || (NULL == btampContext))
{
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_ERROR, "%s: btampHandle value: %p, pBapHCIPhysLinkCreate is %p",
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_ERROR, "%s: btampHandle value: %pK, pBapHCIPhysLinkCreate is %pK",
__func__, btampHandle, pBapHCIPhysLinkCreate);
return VOS_STATUS_E_FAULT;
}

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %p", __func__, btampHandle);
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %pK", __func__, btampHandle);

if(DISCONNECTED != instanceVar->stateVar)
{
Expand All @@ -896,7 +896,7 @@ WLAN_BAPPhysicalLinkCreate
&btampContext, /* Handle to return per assoc btampContext value in */
BT_INITIATOR); /* BT_INITIATOR */

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampContext value: %p", __func__, btampContext);
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampContext value: %pK", __func__, btampContext);

/* Handle event */
vosStatus = btampFsm(btampContext, &bapEvent, &status);
Expand Down Expand Up @@ -968,12 +968,12 @@ WLAN_BAPPhysicalLinkAccept
/* Validate params */
if ((pBapHCIPhysLinkAccept == NULL) || (NULL == btampContext))
{
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_ERROR, "%s: btampHandle value: %p, pBapHCIPhysLinkAccept is %p",
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_ERROR, "%s: btampHandle value: %pK, pBapHCIPhysLinkAccept is %pK",
__func__, btampHandle, pBapHCIPhysLinkAccept);
return VOS_STATUS_E_FAULT;
}

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %p", __func__, btampHandle);
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %pK", __func__, btampHandle);

instanceVar = &(btampContext->bapPhysLinkMachine);
if(DISCONNECTED != instanceVar->stateVar)
Expand All @@ -1000,7 +1000,7 @@ WLAN_BAPPhysicalLinkAccept
&btampContext, /* Handle to return per assoc btampContext value in */
BT_RESPONDER); /* BT_RESPONDER */

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampContext value: %p", __func__, btampContext);
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampContext value: %pK", __func__, btampContext);

/* Handle event */
vosStatus = btampFsm(btampContext, &bapEvent, &status);
Expand Down Expand Up @@ -1070,7 +1070,7 @@ WLAN_BAPPhysicalLinkDisconnect
return VOS_STATUS_E_FAULT;
}

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %p", __func__, btampHandle);
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate the Physical link handle */
if (pBapHCIPhysLinkDisconnect->phy_link_handle != btampContext->phy_link_handle)
Expand All @@ -1089,7 +1089,7 @@ WLAN_BAPPhysicalLinkDisconnect
bapEvent.event = eWLAN_BAP_HCI_PHYSICAL_LINK_DISCONNECT;
bapEvent.params = pBapHCIPhysLinkDisconnect;

VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampContext value: %p", __func__, btampContext);
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampContext value: %pK", __func__, btampContext);

/* Handle event */
vosStatus = btampFsm(btampContext, &bapEvent, &status);
Expand Down Expand Up @@ -1175,7 +1175,7 @@ WLAN_BAPLogicalLinkCreate
}


VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %p", __func__, btampHandle);
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate the BAP state to accept the logical link request
Logical Link create/accept requests are allowed only in
Expand Down Expand Up @@ -1365,7 +1365,7 @@ WLAN_BAPLogicalLinkAccept
}


VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %p", __func__, btampHandle);
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: btampHandle value: %pK", __func__, btampHandle);

/* Validate the BAP state to accept the logical link request
Logical Link create/accept requests are allowed only in
Expand Down Expand Up @@ -1573,7 +1573,7 @@ WLAN_BAPLogicalLinkDisconnect
#ifdef BAP_DEBUG
/* Trace the tBtampCtx being passed in. */
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO_HIGH,
"WLAN BAP Context Monitor: btampContext value = %p in %s:%d", btampContext, __func__, __LINE__ );
"WLAN BAP Context Monitor: btampContext value = %pK in %s:%d", btampContext, __func__, __LINE__ );
#endif //BAP_DEBUG

bapHCIEvent.bapHCIEventCode = BTAMP_TLV_HCI_COMMAND_STATUS_EVENT;
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/prima/CORE/BAP/src/bapApiLinkSupervision.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2013 The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2013, 2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
Expand Down Expand Up @@ -520,7 +520,7 @@ static VOS_STATUS WLANBAP_TxLinkSupervisionCB
}
}
VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_INFO,
"%s:Returned Vos Packet:%p\n", __func__, pPacket );
"%s:Returned Vos Packet:%pK\n", __func__, pPacket );

vos_pkt_return_packet( pPacket );

Expand Down
Loading

0 comments on commit 3bf35cf

Please sign in to comment.