Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
c5ebe227
Commit
c5ebe227
authored
Nov 01, 2010
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
beceem: fix printf format strings
Signed-off-by:
Stephen Hemminger
<
shemminger@vyatta.com
>
parent
0980f2e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/staging/bcm/LeakyBucket.c
drivers/staging/bcm/LeakyBucket.c
+5
-5
No files found.
drivers/staging/bcm/LeakyBucket.c
View file @
c5ebe227
...
...
@@ -82,7 +82,7 @@ static ULONG GetSFTokenCount(PMINI_ADAPTER Adapter, PacketInfo *psSF)
if
(
NULL
==
Adapter
||
(
psSF
<
Adapter
->
PackInfo
&&
(
uintptr_t
)
psSF
>
(
uintptr_t
)
&
Adapter
->
PackInfo
[
HiPriority
]))
{
BCM_DEBUG_PRINT
(
Adapter
,
DBG_TYPE_TX
,
TOKEN_COUNTS
,
DBG_LVL_ALL
,
"IPAFF: Got wrong Parameters:Adapter: %p, QIndex: %
l
d
\n
"
,
Adapter
,
(
psSF
-
Adapter
->
PackInfo
));
BCM_DEBUG_PRINT
(
Adapter
,
DBG_TYPE_TX
,
TOKEN_COUNTS
,
DBG_LVL_ALL
,
"IPAFF: Got wrong Parameters:Adapter: %p, QIndex: %
z
d
\n
"
,
Adapter
,
(
psSF
-
Adapter
->
PackInfo
));
return
0
;
}
...
...
@@ -94,14 +94,14 @@ static ULONG GetSFTokenCount(PMINI_ADAPTER Adapter, PacketInfo *psSF)
}
else
{
BCM_DEBUG_PRINT
(
Adapter
,
DBG_TYPE_TX
,
TOKEN_COUNTS
,
DBG_LVL_ALL
,
"Not enough tokens in queue %
l
d Available %u
\n
"
,
BCM_DEBUG_PRINT
(
Adapter
,
DBG_TYPE_TX
,
TOKEN_COUNTS
,
DBG_LVL_ALL
,
"Not enough tokens in queue %
z
d Available %u
\n
"
,
psSF
-
Adapter
->
PackInfo
,
psSF
->
uiCurrentTokenCount
);
psSF
->
uiPendedLast
=
1
;
}
}
else
{
BCM_DEBUG_PRINT
(
Adapter
,
DBG_TYPE_TX
,
TOKEN_COUNTS
,
DBG_LVL_ALL
,
"IPAFF: Queue %
l
d not valid
\n
"
,
psSF
-
Adapter
->
PackInfo
);
BCM_DEBUG_PRINT
(
Adapter
,
DBG_TYPE_TX
,
TOKEN_COUNTS
,
DBG_LVL_ALL
,
"IPAFF: Queue %
z
d not valid
\n
"
,
psSF
-
Adapter
->
PackInfo
);
}
BCM_DEBUG_PRINT
(
Adapter
,
DBG_TYPE_TX
,
TOKEN_COUNTS
,
DBG_LVL_ALL
,
"IsPacketAllowedForFlow <==="
);
return
0
;
...
...
@@ -164,7 +164,7 @@ static VOID CheckAndSendPacketFromIndex(PMINI_ADAPTER Adapter, PacketInfo *psSF)
int
iPacketLen
=
0
;
BCM_DEBUG_PRINT
(
Adapter
,
DBG_TYPE_TX
,
TX_PACKETS
,
DBG_LVL_ALL
,
"%
l
d ====>"
,
(
psSF
-
Adapter
->
PackInfo
));
BCM_DEBUG_PRINT
(
Adapter
,
DBG_TYPE_TX
,
TX_PACKETS
,
DBG_LVL_ALL
,
"%
z
d ====>"
,
(
psSF
-
Adapter
->
PackInfo
));
if
((
psSF
!=
&
Adapter
->
PackInfo
[
HiPriority
])
&&
Adapter
->
LinkUpStatus
&&
atomic_read
(
&
psSF
->
uiPerSFTxResourceCount
))
//Get data packet
{
if
(
!
psSF
->
ucDirection
)
...
...
@@ -212,7 +212,7 @@ static VOID CheckAndSendPacketFromIndex(PMINI_ADAPTER Adapter, PacketInfo *psSF)
}
else
{
BCM_DEBUG_PRINT
(
Adapter
,
DBG_TYPE_TX
,
TX_PACKETS
,
DBG_LVL_ALL
,
"For Queue: %
l
d
\n
"
,
psSF
-
Adapter
->
PackInfo
);
BCM_DEBUG_PRINT
(
Adapter
,
DBG_TYPE_TX
,
TX_PACKETS
,
DBG_LVL_ALL
,
"For Queue: %
z
d
\n
"
,
psSF
-
Adapter
->
PackInfo
);
BCM_DEBUG_PRINT
(
Adapter
,
DBG_TYPE_TX
,
TX_PACKETS
,
DBG_LVL_ALL
,
"
\n
Available Tokens = %d required = %d
\n
"
,
psSF
->
uiCurrentTokenCount
,
iPacketLen
);
//this part indicates that becuase of non-availability of the tokens
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment