summaryrefslogtreecommitdiff
path: root/edk2/StdLib/Include
diff options
context:
space:
mode:
authorlpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524>2012-02-24 18:45:09 +0000
committerlpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524>2012-02-24 18:45:09 +0000
commit04a6f14f53e8caa294eb52cad17298b062f46002 (patch)
tree90d8fe1445678b310074444d9d5d625ef9380b1a /edk2/StdLib/Include
parent20a7fedc1bfa61d1caa0b3372106bd6face310bf (diff)
Fix issues detected by python web-server.
* Removed display of TPL * Added NOP implementation for SO_REUSEADDR * Add better detection of socket address * Return first address Signed-off-by: lpleahy Python Web server below: --------------- import sys import BaseHTTPServer from SimpleHTTPServer import SimpleHTTPRequestHandler HandlerClass = SimpleHTTPRequestHandler ServerClass = BaseHTTPServer.HTTPServer Protocol = "HTTP/1.0" port = 80 server_address = ('', port) HandlerClass.protocol_version = Protocol httpd = ServerClass(server_address, HandlerClass) sa = httpd.socket.getsockname() print "Serving HTTP on", sa[0], "port", sa[1], "..." httpd.serve_forever() git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@13034 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'edk2/StdLib/Include')
-rw-r--r--edk2/StdLib/Include/Efi/EfiSocketLib.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/edk2/StdLib/Include/Efi/EfiSocketLib.h b/edk2/StdLib/Include/Efi/EfiSocketLib.h
index f71653fa1..d78e9f6a1 100644
--- a/edk2/StdLib/Include/Efi/EfiSocketLib.h
+++ b/edk2/StdLib/Include/Efi/EfiSocketLib.h
@@ -115,18 +115,12 @@
**/
#define RAISE_TPL(PreviousTpl, tpl) \
VERIFY_TPL ( tpl ); \
- PreviousTpl = gBS->RaiseTPL ( tpl ); \
- DEBUG (( DEBUG_TPL | DEBUG_TPL, \
- "%d: TPL\r\n", \
- tpl ))
+ PreviousTpl = gBS->RaiseTPL ( tpl );
/**
Restore the TPL to the previous value
**/
#define RESTORE_TPL(tpl) \
- DEBUG (( DEBUG_TPL | DEBUG_TPL, \
- "%d: TPL\r\n", \
- tpl )); \
gBS->RestoreTPL ( tpl )
//------------------------------------------------------------------------------